Message-ID: <1364505750988-4662784.post@n4.nabble.com>
Date: 2013-03-28T21:22:30Z
From: soon yi
Subject: ggplot2: less than equal sign
Hi
I am trying to add a less than equal sign to a plot. I have previously done
this using unicode but is not working in this instance. Any suggestions
would be great
thanks
example code:
library(ggplot2)
df<-data.frame(vis=c(0,0,1,1) , count=c(10,15,20,10) , grp=c(0,1,0,1))
df$grp <-factor(df$grp ,levels=c(0,1) , labels =c("x \u2265 10" , "x > 10"))
ggplot(df, aes(x = factor(vis), y=count , fill=grp)) + geom_bar(stat =
"identity")
--
View this message in context: http://r.789695.n4.nabble.com/ggplot2-less-than-equal-sign-tp4662784.html
Sent from the R help mailing list archive at Nabble.com.