Re: [R] categorical vs numerical

2009-12-05 Thread DispersionMap
im using w7 ultimate Peter Ehlers wrote: > > pkg:lattice is installed as part of the base R distribution. > You don't need to install it. > > DispersionMap wrote: >> Thanks, ill give them whirl...when i was installing the lattice package i >> got >> the error in bold below...why does it say pe

Re: [R] categorical vs numerical

2009-12-05 Thread Peter Ehlers
pkg:lattice is installed as part of the base R distribution. You don't need to install it. DispersionMap wrote: Thanks, ill give them whirl...when i was installing the lattice package i got the error in bold below...why does it say permission denied and what effect does this have? I guess that

Re: [R] categorical vs numerical

2009-12-05 Thread DispersionMap
Thanks, ill give them whirl...when i was installing the lattice package i got the error in bold below...why does it say permission denied and what effect does this have? > utils:::menuInstallLocal() package 'lattice' successfully unpacked and MD5 sums checked updating HTML package descriptions Wa

Re: [R] categorical vs numerical

2009-12-05 Thread Peter Ehlers
Whoops, that should be densityplot(~y|g, data=dat, plot.points=FALSE, layout=c(1,4)) -Peter Ehlers Peter Ehlers wrote: You could try density plots: If dat is your dataframe, y is your numerical vector and g is your factor, library(lattice) trellis.device(height=9, width=7) densityplot(~g|y,

Re: [R] categorical vs numerical

2009-12-05 Thread Peter Ehlers
You could try density plots: If dat is your dataframe, y is your numerical vector and g is your factor, library(lattice) trellis.device(height=9, width=7) densityplot(~g|y, data=dat, plot.points=FALSE, layout=c(1,4)) See ?densityplot, ?panel.densityplot -Peter Ehlers DispersionMap wrote: Tha

Re: [R] categorical vs numerical

2009-12-05 Thread DispersionMap
Thanks, however the group sizes are really big (each a,b,c.. category has 60,000 observations). Its hard to see whats going on withe the jittered stripchart, i just get big black blobs. Any other suggestions? Peter Ehlers wrote: > > If your group sizes are not too large, I would use jittered

Re: [R] categorical vs numerical

2009-12-04 Thread P Ehlers
If your group sizes are not too large, I would use jittered stripcharts. They're more informative than boxplots and much less subject to misinterpretation. One warning, I'm not fond of the default pch=0. -Peter Ehlers DispersionMap wrote: What ways are there to plot categorical vs numerical dat

[R] categorical vs numerical

2009-12-04 Thread DispersionMap
What ways are there to plot categorical vs numerical data in R. I have two columns: one with categorical data in 5 categories a,b,c,d,e, and a numerical column with integers between 1 and 100. I have used a boxplot with a,b,c,d,e on the x-axis and an increasing numerical scale on the y-axis. T