[R] ggplot2 problem
Eric
rmailbox at justemail.net
Thu Nov 27 03:19:35 CET 2008
aes() does not have an argument, "Year" but it does have an argument "x"
so try:
df <- data.frame(Year = rep(1:5,2))
m <- ggplot(df, aes(x=Year))
m + geom_bar()
(It works for me.)
Eric
steve wrote:
> I'm using ggplot2 2.0.8 and R 2.8.0
>
> df = data.frame(Year = rep(1:5,2))
> m = ggplot(df, aes(Year=Year))
> m + geom_bar()
>
> Error in get("calculate", env = ., inherits = TRUE)(., ...) :
> attempt to apply non-function
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help
mailing list