我想为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)
觉得我错过了一些明显的东西.任何帮助赞赏.
我想隐藏标签.我相信这与选项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)
谢谢..