Re: [R] stripchart

2015-04-07 Thread Jim Lemon
-example John Kane Kingston ON Canada -Original Message- From: catalinro...@gmail.com Sent: Mon, 6 Apr 2015 20:16:39 +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

[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.

Re: [R] stripchart

2015-04-06 Thread catalin roibu
Message- From: catalinro...@gmail.com Sent: Mon, 6 Apr 2015 20:16:39 +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

Re: [R] stripchart

2015-04-06 Thread John Kane
-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 full dots above 90th and bellow 10th

Re: [R] stripchart

2015-04-06 Thread catalin roibu
/hadley/devtools/wiki/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 To: r-help@r-project.org Subject: [R

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

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-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)),

[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)

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 =

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 = n/2)

[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 (magnified

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

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
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

[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 and

Re: [R] stripchart and ordering of plot

2009-05-22 Thread Andrew Yee
...@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 - 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

[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 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-side,

[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

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,