[R] ggplot problem

Thierry Onkelinx thierry.onkelinx at inbo.be
Wed May 24 09:51:46 CEST 2017


Dear Greg,

Make sure that your x variable (Betas) is categorical. That is required for
geom_boxplot().

And please do read the posting guide.

Best regards,



ir. Thierry Onkelinx
Instituut voor natuur- en bosonderzoek / Research Institute for Nature and
Forest
team Biometrie & Kwaliteitszorg / team Biometrics & Quality Assurance
Kliniekstraat 25
1070 Anderlecht
Belgium

To call in the statistician after the experiment is done may be no more
than asking him to perform a post-mortem examination: he may be able to say
what the experiment died of. ~ Sir Ronald Aylmer Fisher
The plural of anecdote is not data. ~ Roger Brinner
The combination of some data and an aching desire for an answer does not
ensure that a reasonable answer can be extracted from a given body of data.
~ John Tukey

2017-05-23 23:59 GMT+02:00 greg holly <mak.hholly op gmail.com>:

> Hi all;
>
> When I run the following program substantially I have "Warning message:
> position_dodge requires non-overlapping x intervals"
>
> How I can overcome this problem.
>
> Regards,
>
> Greg
>
> p <- ggplot() + geom_point(data=a, aes(x=Betas, y=Traits, color=
> Super.Pathway), shape=15, size=4)
>
> p <- p + guides(color=guide_legend(title=NULL))
>
> p <- p + theme(legend.key = element_blank())
>
> p <- p  + geom_boxplot(data=a,aes(x=Betas,fill=factor(Super.
> Pathway),y=Traits))
> + guides(fill=FALSE) +scale_x_continuous(breaks = seq(-50, 60, 5))
>
> p
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help op r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/
> posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

	[[alternative HTML version deleted]]



More information about the R-help mailing list