Re: [R] overlaying frequency histograms or density plots in R

2021-02-25 Thread Bogdan Tanasa
>> Hi > >> > >> You should use position dodge. > >> > >> p <- ggplot(iris, aes(x=Sepal.Length, colour=Species)) > >> p+geom_density() > >> p <- ggplot(iris, aes(x=Sepal.Length, y=..density.., colour=Species)) > >&g

Re: [R] overlaying frequency histograms or density plots in R

2021-02-25 Thread Rui Barradas
On Behalf Of Bogdan Tanasa Sent: Wednesday, February 24, 2021 11:07 PM To: r-help Subject: [R] overlaying frequency histograms or density plots in R Dear all, we do have a dataframe with a FACTOR called EXP that has 3 LEVELS ; head(pp_ALL) VALUE EXP 1 1639742 DMSO 2 1636822 DMSO 3

Re: [R] overlaying frequency histograms or density plots in R

2021-02-25 Thread PIKAL Petr
: PIKAL Petr Cc: r-help Subject: Re: [R] overlaying frequency histograms or density plots in R Thanks a lot Petr ! shall i uses "dodge" also for the RELATIVE FREQUENCY HISTOGRAMS : p <- ggplot(iris, aes(x=Sepal.Length, y=..count../sum(..count..)*100, colour=Species)) p+g

Re: [R] overlaying frequency histograms or density plots in R

2021-02-24 Thread Bogdan Tanasa
p+geom_histogram(position="dodge") > > Cheers > Petr > > -Original Message- > > From: R-help On Behalf Of Bogdan Tanasa > > Sent: Wednesday, February 24, 2021 11:07 PM > > To: r-help > > Subject: [R] overlaying frequency histograms or de

Re: [R] overlaying frequency histograms or density plots in R

2021-02-24 Thread PIKAL Petr
ehalf Of Bogdan Tanasa > Sent: Wednesday, February 24, 2021 11:07 PM > To: r-help > Subject: [R] overlaying frequency histograms or density plots in R > > Dear all, we do have a dataframe with a FACTOR called EXP that has 3 LEVELS ; > > head(pp_ALL) > VALUE EXP >

[R] overlaying frequency histograms or density plots in R

2021-02-24 Thread Bogdan Tanasa
Dear all, we do have a dataframe with a FACTOR called EXP that has 3 LEVELS ; head(pp_ALL) VALUE EXP 1 1639742 DMSO 2 1636822 DMSO 3 1634202 DMSO shall i aim to overlay the relative frequency histograms, or the density histograms for the FACTOR LEVELS, please would you let me know why the