Quantcast
Channel: Developer topics
Viewing all articles
Browse latest Browse all 17903

Tooltips in Custom R visual

$
0
0

I have followed the git tutorial to create an html custom visual with R. The visual is currently working if I add up to one tooltip column but crashes if I try to add more with the error:

 

"Aesthetics must be either lenght 1 or same as the data (754): x,y,colour,label"

 

I know it's possible to add more than one label to ggplot and this show correctly when using plotly specifying them as "label=c("label1","label2"...) so I am thinking that the problem has to do on how I am processing it on my script. The only line where I address tooltips is:

 

"geom_point(data = locations, mapping = aes(x = longitude, y = latitude, color = count, label= name)"

 

Any help will be really appreciated, thanks in advance!


Viewing all articles
Browse latest Browse all 17903

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>