Brian,
First, you have "Lat.Root.." in the ggplot example, but subsequently
typed "Lat..Root.." -- make sure your command is using the correct
variable name. More generally, I'd stay away from having variable
names include groups of double periods, as this is used by ggplot for
things like "..count.." and "..n..". For example, this gives an error:
>mtcars["Lat..Root.."] <- mtcars$disp
>qplot(mpg,Lat..Root..,data=mtcars)
Error in eval(expr, envir, enclos) : object 'LatRoot' not found
Anyway, try renaming that variable-
Ben
On Fri, Nov 16, 2012 at 4:29 PM, briancady413 <
brianc...@gmail.com> wrote:
> I submit:
> ggplot(faithful, aes(x = eruptions)) + geom_histogram(aes(x = eruptions))
>
> I get:
> [36] NOTE: stat_bin: binwidth defaulted to range/30. Use 'binwidth = x'
> to adjust this.
> (I know this can be ignored)
>
> I get a plot in RStudio's plot window. Good.
>
> But when I submit:
> ggplot(fortify(DOX4wo), aes(x=Genotype, y=mM.Phen)) +
> geom_histogram(aes(x=Lat.Root..)
>
> I get:
> [39] ERROR:
> <text>
>
> I'm using:
> R 2.15.2
> RStudio 0.97.168
> R Commander 1.9-2
>
> DOX4wo is a dataset including columns labeled Genotype, mM.Phen, and
> Lat..Root..
>
> Brian Cady
>
> --
> You received this message because you are subscribed to the ggplot2 mailing
> list.
> Please provide a reproducible example:
>
https://github.com/hadley/devtools/wiki/Reproducibility
>
> To post: email
ggp...@googlegroups.com
> To unsubscribe: email
ggplot2+u...@googlegroups.com
> More options:
http://groups.google.com/group/ggplot2