Displaying 1 result from an estimated 1 matches for "dataproblems".
2014 Jun 20
1
zuzufarah Help with ggplot 2 error: Aesthetics must either be length one, or the same length as the dataProblems
...UA_discharge) + .1*diff(range(WUA_discharge))))
+
theme(plot.margin= unit(c(0, 0, 0.5, 0.5), "lines"))
# Get the gtables
gt1 <- ggplot_gtable(ggplot_build(p1))
the error message from the following code states:
Error: Aesthetics must either be length one, or the same length as the
dataProblems:WUA_table
the error appears after the line:
gt1 <- ggplot_gtable(ggplot_build(p1))
I would appreciate some help on the matter, it seems like a small fix,
however I am very inexperienced with R!
[[alternative HTML version deleted]]