小编Ant*_*nto的帖子

添加绘图标题到ggvis

我想为ggvis情节添加一个标题.我无法在任何地方找到一个例子.与其他R图很简单,例如

library(ggplot2)
library(ggvis)
x <- 1:10
y <- x^2
df <- data.frame(x, y)

plot(x, y, main = "Plot Title")  # Base R with title
ggplot(df, aes(x, y)) + geom_point() + ggtitle("Plot Title")  # ggplot2 with title
df %>% ggvis(~x, ~y) %>% layer_points()  # ggvis but no title??
Run Code Online (Sandbox Code Playgroud)

觉得我错过了一些明显的东西.任何帮助赞赏.

r title ggvis

23
推荐指数
2
解决办法
4956
查看次数

隐藏googleVis Bubble Charts中的标签

我想隐藏标签.我相信这与选项bubble.textStyle和设置颜色有关,none但我无法弄明白.

Bubble <- gvisBubbleChart(Fruits, idvar="Fruit", xvar="Sales", yvar="Expenses",
                          colorvar="Year", sizevar="Profit",
                          options=list(hAxis='{minValue:75, maxValue:125}',
                                       width=500, height=300))
plot(Bubble)
Run Code Online (Sandbox Code Playgroud)

谢谢..

json r google-visualization googlevis

7
推荐指数
1
解决办法
1396
查看次数

标签 统计

r ×2

ggvis ×1

google-visualization ×1

googlevis ×1

json ×1

title ×1