Re: [R] How to set colors, axis gap, and free scale in ggplot?

2022-02-22 Thread Luigi Marongiu
You are right, it did work. Thanks Case closed. On Tue, Feb 22, 2022 at 3:35 PM Ron Crump wrote: > > What error? > Those are warning messages to do with your call to geom_bar. I've never > used geom_bar in that way, I'd create my summaries independently of > the graphing, so can't comment on how

Re: [R] How to set colors, axis gap, and free scale in ggplot?

2022-02-22 Thread Ron Crump via R-help
What error? Those are warning messages to do with your call to geom_bar. I've never used geom_bar in that way, I'd create my summaries independently of the graphing, so can't comment on how it should be used. This simple example works fine for me: ``` library(ggplot2) data(iris) ggplot(iris) +

Re: [R] How to set colors, axis gap, and free scale in ggplot?

2022-02-22 Thread Luigi Marongiu
I am trying instead to increase the size with `theme(strip.text.x = element_text(size = 10))` (evem from 1 onwards) or `theme(strip.text.x = element_text(face = "bold"))` but it gives an error (same in both cases, even when using `strip.text`): ``` No summary function supplied, defaulting to `mean_

Re: [R] How to set colors, axis gap, and free scale in ggplot?

2022-02-22 Thread Luigi Marongiu
No wonder it was not working: I was using the wrong functions (so far of manuals) This is great, thank you! All tips worked fine, including the free axis scale. On Tue, Feb 22, 2022 at 12:41 PM Ron Crump wrote: > > Hi Luigi, > > > # FROM HERE IT DOES NOT WORK > > facet_grid(. ~ Species, scale

[R] How to set colors, axis gap, and free scale in ggplot?

2022-02-22 Thread Luigi Marongiu
Hello, I have a dataframe with 3 columns: the actual measurement (Concentration), and two groups (Vitamin and Group). I would like to plot a barplot with superimposed a jitterplot, with error bars. I am using facet_grid. All that I can do, but the customization does not work. The customization is a