Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ggvis で作成された折れ線グラフにカーソルを合わせると、マウスをどこに動かしても、data.frame の最初の値だけが表示されます。
例:
library(ggvis) mtcars %>% ggvis(~wt, ~mpg) %>% layer_lines() %>% add_tooltip(function(df) df$wt)
値 1.513 を取得し、どこにホバーしてもかまいません。を使用する場合、この問題は発生しませんlayer_points。
layer_points