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

Rename tooltip names in ggplot2

$
0
0

I'm trying to rename the names which are shown in the tooltip in a qplot

 

By using aes it worked so far but then i got the problem, that the values are incorrect because i dont know how to read each correct coordinate points

 

g=qplot(dataset[1], dataset[2], data=dataset, aes(x,y)) + geom_point(aes(text=sprintf("Costs: %s<br>Count: <br>Last Name: ", dataset[4])))

See screenshot here: https://ibb.co/bCN4Sx


Viewing all articles
Browse latest Browse all 17878

Trending Articles



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