library(ggplot2)
type <- floor(rnorm(50,3,1))
year <- floor(rnorm(50,2002,1))
df <- data.frame(year=factor(year),type=factor(type))
qplot(data=df,year,geom="bar",facets=.~type)
The plot above shows a bar graph facetted by a factor called type,
which is derived from an integer. I'd like to assign labels to these
numerical types like "one", "two" .. such that they show up instead of
the numerical values (1, 2, ..) of the factor.
Another problem is that I cannot get rid of the "count" label on the y
axis since setting ylab does not work. (I believe several people had
reported this problem).
-- Christian
But you get the idea.
david.
On Mar 4, 2009, at 10:30 AM, Christian Lindig wrote: