search for: aesdefaults

Displaying 1 result from an estimated 1 matches for "aesdefaults".

2009 Jun 01
2
ggplot2 and Date class
...ggplot2/scale_date.html , which reproduces the error. > df <- data.frame( date = seq(Sys.Date(), len=100, by="1 day")[sample(100, 50)], price = runif(50) ) > dt <- qplot(date, price, data=df, geom="line") + opts(aspect.ratio = 1/4) > dt + scale_x_date() Error in aesdefaults(data, .$geom$default_aes(), compact(.$mapping)) : could not find function "as_df" My ggplot2 package is up to date. Am I missing something else, maybe in my default aesthetics? Thanks, Matt Frost