Absolutely,
data.frame( Edge_MS = c(19.5, 17.9, 18.2, 17, 18.65, 14.5),
Inside = c(18.2, 13.1, 14, 17.8, 16.75, 13.6)
library(ggplot2)> DBH1 %>%
gather(variable, vlaue) %>%
ggplot(aes(x = value))+
- geom_histogram(color = "grey30", fill = "white") +
- facet_grid(rows = vars(variable))
Error in FUN(X[[i]], ...) : object 'value' not found
...when I just use the gather command/function, I do get this
DBH1 %>%
gather(variable, vlaue)
variable vlaue
1 Edge_MS 19.50
2 Edge_MS 17.90
3 Edge_MS 18.20
4 Edge_MS 17.00
5 Edge_MS 18.65
6 Edge_MS 14.50
What am I doing wrong?
Thanks,
Bro.