3
Good night
I’m creating a bubble chart in R
I was able to plot the graph and put the name next to the bubbles
nome<-c("a","b","c","d")
anos<-c(15,8,25,9)
renda<-c(14,5,3,25)
final<-c(30,15,42,12)
tudo<-cbind(nome,anos,renda,final)
tudo<-as.data.frame(tudo)
attach(tudo)
teste<-ggplot(tudo, aes(x=anos, y=renda, size=final)) +
geom_point(alpha=0.6) +
geom_point(aes(colour = factor(nome)))
teste +
geom_label_repel(aes(label = nome),
box.padding = 0.8,
point.padding = 0.5,
segment.color = 'grey50') +
theme_classic()
But I would like to know how to make sure that the name for each bubble does not change in size along with the bubble, that is, all the names of the bubbles have the same size regardless of the size of the bubble
another doubt, in the legend "final", instead of scale circles, a to, I would like to know how do I for the scale be represented by circles and not by the letter to
I would also like to know if it is possible to increase the difference in size between the bubbles, ie , exaggerate the scale
Thanks in advance
Thank you very much, solved the problem.
– Henrique Faria de Oliveira