-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
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.
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
-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
/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
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,
# 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
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
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)),
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)
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 =
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)
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
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
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,
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
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
...@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
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
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
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,
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
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,
23 matches
Mail list logo