2016-10-04 101 views
0

刪除線這就是傳說中的樣子:谷歌散點圖傳說 - 通過點

enter image description here

我想最後的3系列顯示爲點,我想通過中間的線這些點將消失。是否有一種方法可以在series =或legend = options中做到這一點?

回答

0

要使用這樣的

+ scale_colour_manual(values = c("purple", "green", "blue", "yellow", "magenta"), 
        guide = guide_legend(override.aes = list(
        linetype = c("solid", "solid",rep("blank", 3)), 
        shape = c(NA,NA, rep(16, 3))))) 
0

我找到了解決辦法,這是相當直觀。 lineWidth: 0系列選項將擺脫這一行。

gvisComboChart(df, 
    options = list(
     series = "[{type:'points', lineWidth: 0}]" 
    ) 
)