search for: layout_base

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

2013 Feb 18
1
ggplot2 and facet_wrap help
...price' # So my data is already in a "long" format I think, but when I do this: ggplot(data=mydf, aes(x=mydf$size2, y=mydf$median_price, group=as.factor(mydf$clarity), colour=as.factor(mydf$clarity))) + geom_line() + facet_wrap(~ factor(mydf$size1)) I get this error: "Error in layout_base(data, vars, drop = drop) : At least one layer must contain all variables used for facetting" Can you please help me understand what I am doing wrong? -fra