[R-sig-Geo] [R-sig-eco] 3d box plot

Paolo Piras paolo.piras at uniroma3.it
Wed Nov 11 08:44:23 CET 2015


Thanks to all who answered to my question; I found your comments very useful;

another option could be

http://www.cpwardell.com/2015/08/28/legoplots-in-r-3d-barplots-in-r/


My original purpose was to plot boxplots by groups for more than a variables (as the comment below does) at different times (the third dimension)


best

paolo



________________________________
Da: Jeremy Chacon <chaco001 at umn.edu>
Inviato: lunedì 9 novembre 2015 16.21
A: Paolo Piras
Cc: R-SIG list; r-sig-ecology at r-project.org
Oggetto: Re: [R-sig-eco] 3d box plot

This doesn't directly answer your question, but I would recommend just using a 2d boxplot grouped by the variables. I personally find the 3d one very difficult to read. What about something like this, using ggplot2?

library(ggplot2)

fakeData = c(rnorm(10,1,2), rnorm(10,2,2),rnorm(10,2,2),rnorm(10,3,2))
group1 = c(rep("A",20),rep("B",20))
group2 = rep(c("X","Y"), 20)

df = data.frame(group1,group2, fakeData)
ggplot(df, aes(x = group1, y = fakeData, color = group2))+
  geom_boxplot()

On Sun, Nov 8, 2015 at 5:11 AM, Paolo Piras <paolo.piras at uniroma3.it<mailto:paolo.piras at uniroma3.it>> wrote:
Hi folks,
anyone could address me towards a R function/package able to do a 3d boxplot similar to

http://158.132.155.107/oess/POSH/StatSoft/popups/popup125.gif

Thanks in advance
best
paolo

_______________________________________________
R-sig-ecology mailing list
R-sig-ecology at r-project.org<mailto:R-sig-ecology at r-project.org>
https://stat.ethz.ch/mailman/listinfo/r-sig-ecology



--
___________________________________________________________________________

Jeremy M. Chacon, Ph.D.

Post-Doctoral Associate, Harcombe Lab
University of Minnesota
Ecology, Evolution and Behavior


	[[alternative HTML version deleted]]



More information about the R-sig-Geo mailing list