dreamRs / esquisse

RStudio add-in to make plots interactively with ggplot2
https://dreamrs.github.io/esquisse
Other
1.76k stars 227 forks source link

[Improvement suggestions] - Bar charts by means and size of axes #207

Closed francielilimab closed 2 months ago

francielilimab commented 2 years ago

First, congratulations on the package.

2 Points that could be seen as improvements:

I) The bar graph adds values ​​for the same x. Could have a transformation by the average number of repetitions. II) An option to change the size of the x and y axis values, would also be nice option to rotate the x axis values ​​(Angle = 90 for example).

I hope the contribution is useful.

pvictor commented 2 years ago

Thanks!

Yes I) is a good suggestion, I think @paulosouzafmt wants the same thing.

For II) yes that should be doable to add some controls, in "Appearance" menu maybe. I'll look into it.

Victor

pvictor commented 2 months ago

In GitHub version, you can use stat_summary in combination of geom_bar if you have set y aesthetic, e.g.:

ggplot(mydata, aes(x = x, y = y)) +
  geom_bar(stat = "summary", fun = "mean")

And you can also customize x axis labels (size, fontface, angle...)