I plot two series from the same dataframe. One of them has negative values.
p_change <- ggplot(dx, aes(fill=Group)) +
geom_histogram(aes(x=posvalues), binwidth=1) +
geom_histogram(aes(x=negvalues), binwidth=1) +
xlim(0, 15) +
ylim(-25, 25) +
xlab('Number of tokens') +
theme(
legend.position = "right",
text=element_text(size = 19)
)
p_change
I would like the second histogram to be plotted on the negative y-axis.