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,
> >
> -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
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
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
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
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 wan
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
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
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
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
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
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
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,
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
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
; 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 &
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
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
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
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
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
23 matches
Mail list logo