Re: [R] stripchart

2015-04-07 Thread Jim Lemon
0.1874816, 0.5991878, -1.553753, 1.40589, -1.189748, -0.9560809, > > -1.059296, -1.190311, -0.6166247, -0.00346, -0.597102, 0.4561315, > > 0.9741255, -0.8903497, 0.8815181, -0.3522395, -1.083957, 1.553848, > > 0.8013645, -1.448561, 1.096503, 0.3007325, -1.080419, 0.627004, > >

Re: [R] stripchart

2015-04-06 Thread catalin roibu
> -0.2217541, 0.2237121, -0.2329498, 2.171139, 0.5472844, 1.38426, > -1.755075, -0.5630907, 0.31985, -1.853139, 0.8960767, -0.8075317, > 0.2993207, -0.641555, 1.363514, 0.3422053, 0.4911866, -1.111221, > -0.0137, -0.6198144, -1.292335, 1.118542, -0.000946, -1.619747, > 1.677535

Re: [R] stripchart

2015-04-06 Thread catalin roibu
iki/Reproducibility > > http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example > > > John Kane > Kingston ON Canada > > > > -Original Message- > > From: catalinro...@gmail.com > > Sent: Mon, 6 Apr 2015 20:16:39 +0300 > &g

Re: [R] stripchart

2015-04-06 Thread John Kane
0300 > To: r-help@r-project.org > Subject: [R] stripchart > > Dear all! > > I have a problem! I want to plot temperature anomalies per months until > 1901-2014. For this I want to make a stripchart. I used the specified > command, but I want to plot the extreme values with f

[R] stripchart

2015-04-06 Thread catalin roibu
Dear all! I have a problem! I want to plot temperature anomalies per months until 1901-2014. For this I want to make a stripchart. I used the specified command, but I want to plot the extreme values with full dots above 90th and bellow 10th percentile, and the normal values with hallow dots. Ple

Re: [R] Stripchart colors don't vary after I sort a data frame

2012-12-02 Thread Uwe Ligges
On 28.11.2012 18:27, Thomas Levine wrote: # Hi, # This plot has two colors. overflow <- read.csv('http://chainsaw.thomaslevine.com/overflow.csv', stringsAsFactors = F) png('original.png') stripchart(overflow$precipi ~ overflow$after.9.am, method='stack', pch = 22, bg = overflow$overflow + 1,

[R] Stripchart colors don't vary after I sort a data frame

2012-11-28 Thread Thomas Levine
# Hi, # This plot has two colors. overflow <- read.csv('http://chainsaw.thomaslevine.com/overflow.csv', stringsAsFactors = F) png('original.png') stripchart(overflow$precipi ~ overflow$after.9.am, method='stack', pch = 22, bg = overflow$overflow + 1, vertical = T, col = 0) dev.off() # I wan

Re: [R] Stripchart: way to get different colour for each group

2009-12-01 Thread johannes rara
It seems that it is not possible to color points that way using stripchart. I found a workaround which solved the problem: stripchart(values ~ ind, data=mydata.stack, vertical=T, at=c(1.25, 1.75), pch=15, col="white") points(rep(1.25, nrow(mydata)), mydata$v

Re: [R] Stripchart: way to get different colour for each group

2009-12-01 Thread johannes rara
I was probably too vague. I meant that the group variable descirbes the group (eg. different individuals) and val1 and val2 are just two variables measured from eg. individual. > mydata val1 val2 group 1 1.1 4.2 0 2 3.2 5.3 1 3 4.1 3.4 0 4 2.5 2.6 1 5 6.2 5.3

Re: [R] Stripchart: way to get different colour for each group

2009-11-30 Thread David Winsemius
On Dec 1, 2009, at 12:42 AM, johannes rara wrote: Hi, Is there a way to get different colour based on group when plotting stripchart? mydata <- data.frame(val1 = c(1.1, 3.2, 4.1, 2.5, 6.2, 5.3, 4.5, 2.2, 4.7, 2.7), val2 = c(4.2, 5.3, 3.4, 2.6, 5.3, 6.2, 7.7, 4.8, 3.4, 2.1), group = rep(0:1

[R] Stripchart: way to get different colour for each group

2009-11-30 Thread johannes rara
Hi, Is there a way to get different colour based on group when plotting stripchart? mydata <- data.frame(val1 = c(1.1, 3.2, 4.1, 2.5, 6.2, 5.3, 4.5, 2.2, 4.7, 2.7), val2 = c(4.2, 5.3, 3.4, 2.6, 5.3, 6.2, 7.7, 4.8, 3.4, 2.1), group = rep(0:1, 5)) mydata.stack <- stack(mydata, select=-group) strip

Re: [R] stripchart with pch %in% 21:25 with bg

2009-09-24 Thread Jean lobry
stripchart.formula() works for me with your modification to stripchart.default(). Great! But you don't need the 'bordered' pch for that. Indeed, but this may improve lisibility: # n <- 500 x <- rnorm(n) y <- rnorm(n) fac1 <- rep(c("male", "female"), n) fac2 <- rep(c("blue", "red"), each

Re: [R] stripchart with pch %in% 21:25 with bg

2009-09-23 Thread Peter Ehlers
Jean lobry wrote: I think that it's a good idea, although I have rarely made use of pch > 20. This reminds me to pass on a very belated thank-you to the developer(s) who implemented the formula version for stripchart, which I had promised to do myself quite a long time ago. Thanks, folks! Peter

Re: [R] stripchart with pch %in% 21:25 with bg

2009-09-23 Thread Jean lobry
I think that it's a good idea, although I have rarely made use of pch > 20. This reminds me to pass on a very belated thank-you to the developer(s) who implemented the formula version for stripchart, which I had promised to do myself quite a long time ago. Thanks, folks! Peter Ehlers Hi Peter,

Re: [R] stripchart with pch %in% 21:25 with bg

2009-09-23 Thread Peter Ehlers
I think that it's a good idea, although I have rarely made use of pch > 20. This reminds me to pass on a very belated thank-you to the developer(s) who implemented the formula version for stripchart, which I had promised to do myself quite a long time ago. Thanks, folks! Peter Ehlers Jean lobry

[R] stripchart with pch %in% 21:25 with bg

2009-09-23 Thread Jean lobry
Dear all, consider: ### x <- round(rnorm(50)) stripchart(x, pch = 21, col = "black", bg = "pink", method = "jitter") points(0.5, 1, pch = 21, col = "black", bg = "pink", cex = 2) ### Under R 2.9.0 the points produced by stripchart are not colored, while points() gives the desidered output (mag

Re: [R] stripchart and ordering of plot

2009-05-22 Thread Andrew Yee
; To: r-h...@stat.math.ethz.ch > > Subject: [R] stripchart and ordering of plot > > > > Take for example the following stripchart that's created: > > > > b <- 1:5 > > a <- 11:15 > > e <- 21:25 > > f <- -11:-15 > > > > foo &

[R] stripchart and ordering of plot

2009-05-22 Thread Andrew Yee
Take for example the following stripchart that's created: b <- 1:5 a <- 11:15 e <- 21:25 f <- -11:-15 foo <- rbind(b,a,e,f) stripchart(foo ~ rownames(foo)) In this case, I would like the bottom part of the plot to be the f vector, followed by the e vector, etc. However, R reorders the matrix a

Re: [R] Stripchart and Boxplots side-by-side

2008-05-22 Thread Karl Ove Hufthammer
Dieter Wirz: > with(InsectSprays, boxplot(count ~ spray, boxwex = 0.3)) > with(InsectSprays, stripchart(count ~ spray, col = "red", vertical = > TRUE, add = TRUE)) > > But the dots from the stripchart are plotted over the Boxes. > Is there any possibility to have Stripchart and Boxplots side-by-s

[R] Stripchart and Boxplots side-by-side

2008-05-22 Thread Dieter Wirz
Dear all - With the following code I get Boxplots and Stripcharts in one Plot: with(InsectSprays, boxplot(count ~ spray, boxwex = 0.3)) with(InsectSprays, stripchart(count ~ spray, col = "red", vertical = TRUE, add = TRUE)) But the dots from the stripchart are plotted over the Boxes. Is there any

[R] Stripchart and Boxplots side-by-side

2008-05-22 Thread Dieter Wirz
Dear all - With the following code I get Boxplots and Stripcharts in one Plot: with(InsectSprays, boxplot(count ~ spray, boxwex = 0.3)) with(InsectSprays, stripchart(count ~ spray, col = "red", vertical = TRUE, add = TRUE)) But the dots from the stripchart are plotted over the Boxes. Is there any

Re: [R] stripchart

2008-01-22 Thread John Kane
Have a look at stripplot in lattice. I think it may do what you want if you cbind e & f and then create an identifier to plot against. e <- c(17358865 , 17966995 , 21306539 , 27880531, 34166504, 36111044, 36266288, 36854306 , 43786190 , 44322336 , 45529444, 46302360, 53479132, 58567262, 6

[R] stripchart

2008-01-22 Thread mohamed nur anisah
hi, I want to plot a dotplot graph but unfortunately R does not have it any more. It suggest to use either the stripchart or the dotchart and i prefer to play around with the stripchart graph. Sadly, the result is not like i want where I'm actually wants the plots/points were scattered aro