Skip to content
Prev 179603 / 398502 Next

Bumps chart in R

Thank you Thierry! That was very helpfull

I have added "geom_point" which makes the lineending look more round.
Also - since the chart becomes verye clustered I also added text to
the right.

like so:
ggplot(df, aes(x = tal, y = value, label = text, group = text, size =
size, col = Change))+
 geom_line()+
 geom_text(data = subset(df, tal=="tal1"),size=3, hjust=1, vjust=0)+
 geom_text(data = subset(df, tal=="tal2"),hjust=-1, size=3)+
 geom_point() + scale_x_discrete("Change from time to time") +
 scale_y_continuous("Points") +
 theme_bw()+
 opts(legend.position="none")+
 opts(title="As time went by")+
 opts(plot.title=theme_text(vjust=0,size=20))+
 scale_colour_manual(values = c("red", "black", "blue"))

Thanks for all your help!

On Thu, May 7, 2009 at 1:17 PM, ONKELINX, Thierry
<Thierry.ONKELINX at inbo.be> wrote: