Displaying 20 results from an estimated 8000 matches similar to: "Overlay plot: boxplot and stripchart"
2008 Oct 10
1
boxplot and stripchart
I want to make illustrations a la boxplot for a data material with
several groups. Some of the groups are very small, so a boxplot
doesn't make sense. I would like to use stripchart for these groups.
On the other hand, some of the groups are very large, so for them
stripchart isn't so good. So my question is: Is it possible to combine
boxplots and and stripcharts in one figure? (Of course,
2008 May 22
2
Stripchart and Boxplots side-by-side
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 possibility to have Stripchart and Boxplots side-by-side,
i.e. to move boxplots and/or
2007 Mar 07
3
Plotting a broken line?
Hi,
Is there a smart way in the R graphs to create a line that is broken in
intervals based on the indicator given below.
following is a small test graph
Location,indicator,otherinfo
1.2,1,2.2
2.5,1,2.5
3.7,1,2.3
20.1,2,4.3
22.5,2,5.2
25.0,2,3.4
27.3,2,2.2
35.1,3,3.4
37.0,3,7.2
38.0,3,6.1
40.1,3,5.4
52.9,3,3.3
Right now in the plot the line is continuous, but I would like to have
it broken
2007 Apr 26
2
Can a hyperlink be placed, thorugh R programming, on a graph?
Hi,
If I use
x<-1:10
y<-rnorm(10,0,1)
### pdf(file="c:\\aldi\\test.pdf")
plot(x,y)
segments(x,y,x+2,y+2)
segments(x,y,x+0.5,y+0.5,col=3)
### dev.off()
### q()
Is there a way that I can imbed in the graph plot for each point defined
by x to x+0.5 and y to y+0.5 (and colored in green) a different hyperlink?
For example point one (together with the green tail) will have the
2013 May 03
1
A problem of splitting the right screen in 3 or more independent vertical boxes:
Hi,
Based on par function, I can split the screen into two parts left and
right.
I wish x occupies the half left screen, and all plants occupy half right
screen, which happens right now.
But I wish the right screen, to be split in 3 or more vertical parts
where each pair of the same type of plant, are together in its own block
of boxplot, because each plant has its own unit of measure.
2009 Mar 25
2
"with" and "by" and NA:
Hi,
I have a data.frame with many variables for which I am performing the
mean by subgroup, for a pair of variables at a time, where one of them
for each pair defines the subgroup. The subgroups in the x$cm1 are 0, 1
and 2.
x
ph1 cm1
0.2345 2
1.2222 1
2.0033 0
0.0000 2
1.0033 1
0.2345 0
1.2222 2
2.0033 0
0.0000 1
1.0033 2
> meanbygroup <- as.vector(with(x, by(x$ph1, x$cm1, mean)))
2012 Jun 13
2
Median line with stripchart
Dear all,
I would like to ask if it possible to draw a median line in a Stripchart,
either using the built-in STRIPCHART function or with another package.
I was expecting stripchart() to work more or less like boxplot(), but I
couldn't find an easy way to draw a mean or median line, neither I found
this option in other packages.
Could somebody help?
Best regards,
Luigi Marongiu, MSc
2004 Oct 10
1
How to install a package that needs to see oher pkg dependencies:
Hi,
I am trying to install the genetics package on a server with Linux,
Fedora. I installed it in a PC and worked fine.
In a server since I am not used with R, I am not sure what do I need to
change so genetics pkg can see some package dependencies:
Any suggestion is appreciated, Aldi
Note:
genetics expects gregmisc and mvtnorm to be installed already. gregmisc
creates gdata etc dependencies.
2003 Mar 30
1
Suggestion: add log argument to stripchart
Hello,
I frequently use stripchart to summarise data. Recently I wished to
plot a stripchart on a log scale, so modified stripchart locally. The
change is small, just adding log="" to the function call and
then changing line 42 of src/library/base/R/stripchart.R from:
plot(xlim, ylim, type="n", ann=FALSE, axes=FALSE)
to:
plot(xlim, ylim, type="n",
2006 Dec 30
2
Error: cannot take a sample larger than the population
Hi,
In Splus7 this statement
xlrmN1 <- sample(c(0,1,2),400 ,prob=c(0.02 ,0.93 ,0.05 ))
worked fine, but in R the interpreter reports that the length of the
vector to chose c(0,1,2) is shorter than the size of many times I want
to be selected from the vector c(0,1,2).
Any good reason?
See below the error.
> xlrmN1 <- sample(c(0,1,2),400 ,prob=c(0.02 ,0.93 ,0.05 ))
Error in
2012 Oct 16
2
Windows 7 R (32/64bit) running under cygwin: package not found
Hi,
Using R 2.15.1 on Windows 7. Have installed both versions 32 and 64bit.
In both of them among others I have installed a package rgenoud
When I open R gui of 32bit and write library(rgenoud) it responds by
showing a functional rgenoud version 5.7-8. The same it does on Rgui
64bit.
Now I am working in cygwin (v. 1.12.4.0) with xwin. Normally before when
I had installed a package, I only had
2007 Feb 08
2
How to protect two jobs running on the same directory at the same time not to corrupt each other results:
Hi,
I have a large group of jobs, some of them are running on the same
directory. All of them in batch mode.
What are the best ways to protect from corrupting the results two or
more jobs running on the same directory.
One, I would think can be to run each job in a separate directory,
collect the results and after remove the directories. But I have
thousands of jobs that will run in parallel
2006 Feb 22
1
var-covar matrices comparison
> Date: Mon, 20 Feb 2006 16:43:55 -0600
> From: Aldi Kraja <aldi at wustl.edu>
>
> Hi,
> Using package gclus in R, I have created some graphs that show the
> trends within subgroups of data and correlations among 9 variables (v1-v9).
> Being interested for more details on these data I have produced also the
> var-covar matrices.
> Question: From a pair of two
2009 Jul 20
2
moving columns on a stripchart closer together
Greetings
I have a very simple question that I have not been able to solve by reading the manual. When I produce a stripchart with two straight columns of dots representing individual observations, one representing one group of subjects and the other representing another, the columns wind up at the far left and far right sides of the plot, and I'd like them to be closer together, about as far
2007 Nov 21
1
Manipulating x axis in stripchart
Hi all,
I I need to manipulate the x axis in a stripchart.
I will use one of the data sets included in R to
explain what I need to do.
attach(ToothGrowth)
stripchart(len[supp=='VC']~dose[supp=='VC'],
vertical=TRUE, group.names=c('A','A','A'))
stripchart(len[supp=='OJ']~dose[supp=='OJ'], add=TRUE,
vertical=TRUE, at=c(1:3)+.1,
2009 Sep 23
1
stripchart with pch %in% 21:25 with bg
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 here by cex).
I found a simple workaround
2009 Feb 06
1
16 digits and beyond? R64-bit a solution?
Hi,
I am working with some extremely small p-values and I want to capture
the corresponding quantiles.
I see the help file it says:
'qnorm' is based on Wichura's algorithm AS 241 which provides
precise results up to about 16 digits.
What happen after the 16th digits?
If I am running R in a server 64-bit, can that improve the chances that
beyond 16th digits to still have
2008 Aug 07
1
stripchart ignores main title option (PR#12202)
Full_Name: James Curran
Version: 2.7.1
OS: Windows XP/Vista
Submission from: (NULL) (130.216.51.81)
stripchart ignores the main title option. For example, in the documentation
stripchart(decrease ~ treatment,
main = "stripchart(OrchardSprays)",
vertical = TRUE, log = "y", data = OrchardSprays)
does not yield a plot with
2004 Nov 09
2
Multiple stripcharts using "for loop"
Hi
I'm able to create multiple plots from a dataset using a "for loop" to
change variables, but when I try with stripchart it doesn't work.
Standard boxplot:
for(i in 2:14){boxplot(klk[,i]~Group,main=colnames(klk)[i])
Stripchart:
for(i in 2:14){stripchart(klk[,i]~Group,main=colnames(klk)[i])
gives:Error in plot.window(xlim, ylim, log, asp, ...) :
need finite xlim
2004 Feb 29
1
stripchart and axes
Hi,
I'd like to remove the axes from a plot produced by stripchart(). However,
when trying stripchart(..., axes = FALSE), I get the error meassage
Error in stripchart(hypokvot1 ~ treatment, "jitter", pch = 1, vert = TRUE, :
unused argument(s) (axes ...)
using R 1.8.1 on Windows. Can it be done some other way? If not, maybe this
functionality can be added to a future version of