Removing baseline from geom_histogram in ggplot2 via rpy2?
I am plotting a histogram with ggplot2 through rpy2 like this:
p = ggplot2.ggplot(df) + \
ggplot2.aes_string(x="x", colour="sample") + \
ggplot2.facet_grid(Formula("sample ~ .")) + \
ggplot2.geom_histogram(binwidth=0.3, fill="white")
It works great except geom_histogram
, for example geom_density
, it adds a "base line" at the bottom of the histogram that I would like to remove. How do I remove this line? Here is a picture of the line I am referring to annotated with an arrow. Thank you.
+3
source to share