>> 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
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
: 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
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
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
>
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
6 matches
Mail list logo