Sean Simpson
2018-03-19 19:09:07 UTC
I get this error when trying to plot:
plot(SG, aes(fill=AGE, y=OC, x=AGE)) +
geom_blank() + theme_bw() +
theme(panel.grid.major = element_blank(), panel.grid.minor =
element_blank()) +
geom_bar(position="dodge", stat="identity", colour="black", size=.3) +
geom_errorbar(aes(ymin=OC-SE, ymax=OC+SE), width=.1, size=.1, # Width of
the error bars
position=position_dodge(0)) +
xlab("Crop Age") + ylab("SOC (%)") + ggtitle("") +
expand_limits(y=c(NA, 4.5))
the error message is: Error in plot(SG, aes(fill = AC, y = OC, x = AC)) +
geom_blank() :
non-numeric argument to binary operator
Any help is appreciated.
--
--
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 ***@googlegroups.com
To unsubscribe: email ggplot2+***@googlegroups.com
More options: http://groups.google.com/group/ggplot2
---
You received this message because you are subscribed to the Google Groups "ggplot2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ggplot2+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
plot(SG, aes(fill=AGE, y=OC, x=AGE)) +
geom_blank() + theme_bw() +
theme(panel.grid.major = element_blank(), panel.grid.minor =
element_blank()) +
geom_bar(position="dodge", stat="identity", colour="black", size=.3) +
geom_errorbar(aes(ymin=OC-SE, ymax=OC+SE), width=.1, size=.1, # Width of
the error bars
position=position_dodge(0)) +
xlab("Crop Age") + ylab("SOC (%)") + ggtitle("") +
expand_limits(y=c(NA, 4.5))
the error message is: Error in plot(SG, aes(fill = AC, y = OC, x = AC)) +
geom_blank() :
non-numeric argument to binary operator
Any help is appreciated.
--
--
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 ***@googlegroups.com
To unsubscribe: email ggplot2+***@googlegroups.com
More options: http://groups.google.com/group/ggplot2
---
You received this message because you are subscribed to the Google Groups "ggplot2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ggplot2+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.