Displaying 20 results from an estimated 2000 matches similar to: "ordered boxplots"
2004 Sep 29
6
displaying sample size in boxplots
Hi,
I was wondering if there is a ready made function or parameter
for indicating the sample size in boxplots?
Here's what I came up with so far:
library(ISwR)
data(energy)
attach(energy)
boxplot(expend~stature)
sample.size <- tapply(expend, stature, length)
sample.size <- paste("N=", sample.size, sep="")
mtext(sample.size, at=1:length(unique(stature)), line=2,
2008 Jan 30
4
boxplot and number of observations per box
Dear all,
How can I plot the number of observations per box in a boxplot. Many thanks,
Bernard
---------------------------------
[[alternative HTML version deleted]]
2006 Apr 28
2
How to get a grid behind a boxplot
I am using R 2.2.1 on a Windows 2000 PC.
When I do a grid() after the boxplot
it overprints the boxplot:
> boxplot(count ~ spray, data = InsectSprays, col = "lightgray")
> grid(nx=NA, ny=NULL)
>
if I try the panel.first
> boxplot(count ~ spray, data = InsectSprays, col = "lightgray",
+ panel.first=grid(nx=NA, ny=NULL))
>
I can see the grid flash
2010 Jan 02
2
Boxplot- input the median point and the median value
Dear,
I am a newbie to R.
Now I am learning to draw boxplot using graphics().
I want to highlight the median position
with a round point and the value left (or on the top of)to the point.
Please kindly share the command and thank you.
Elaine
[[alternative HTML version deleted]]
2010 Nov 15
1
Converting numbers to percentages for boxplots
Hi,
I need to convert general numbers to percentages in R to create a boxplot for purposes of comparison.
Can you please tell me how I can do that? My data is attached as a csv file.
Thanks.
Daniel
2006 Jan 06
1
Ordering boxplot factors
Hi all,
what a great help list! I hope someone can help me with this puzzle...
I'm trying to find a simple way to do:
boxplot(obs~factor)
so that the factors are ordered left-to-right along the x-axis by
median, not alphabetically by factor name.
Complicated ways abound, but I'm hoping for a magical one-liner that'll
do the trick.
Any suggestions would be treasured.
Thanks,
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
2006 Mar 22
3
ordering boxplots according to median
Dear R-users,
Does anyone knows how I can order my serie of boxplots from lowest to
highest median (which is much better for visualization purposes).
thanks in advance,
willem
[[alternative HTML version deleted]]
2001 Feb 13
3
xfig boxplot (polygon) bug??
There appears to be a bug in the R xfig() driver.
When I run a simple example, eg
> data(InsectSprays)
> boxplot(count ~ spray, data = InsectSprays, col = "lightgray")
the boxplot is fine. Doing the same thing after
> xfig(file='test.fig')
and then opening in Xfig (ver3.2 patchlevel 2) on my Linux box produces boxplots
where the boxes, although correctly shaded in,
2001 Feb 13
3
xfig boxplot (polygon) bug??
There appears to be a bug in the R xfig() driver.
When I run a simple example, eg
> data(InsectSprays)
> boxplot(count ~ spray, data = InsectSprays, col = "lightgray")
the boxplot is fine. Doing the same thing after
> xfig(file='test.fig')
and then opening in Xfig (ver3.2 patchlevel 2) on my Linux box produces boxplots
where the boxes, although correctly shaded in,
2011 Dec 09
3
Como marcar la media en un grafico boxplot ??
Estimados amigos, mi pregunta es bien directa, a ver si alguien me puede
ayudar:
Como marcar la media en un grafico boxplot ??
Por lo que veo, los boxplot en R marcan por defecto la mediana dentro de la
caja, pero necesito marcar la media y ojala sacar la mediana para que no
aparezcan los dos parametros.
Por lo que he leido, imagino que se puede hacer con alguna funcion de bajo
nivel, pero soy
2005 Apr 15
2
A question about boxplot: mean and median
Dear List,
I have worked through the examples given in the help
on boxplot(). If I am reading it right, only the
median is produced (as a default), which is
represented by the horizontal line inside the box.
What argument do I need to specify if I want to show
the mean as well?
Thanks,
platform i386-pc-mingw32
arch i386
os mingw32
system i386, mingw32
status
2006 Aug 01
3
boxplot
Hello R-users and developers,
Once again, I'm asking for your help.
I've used "identify" to identify points in a scatter plot. However, I can't
apple in the boxplot.....
I need to identify the outlier's id in the boxplot. Can anyone help me?
Thanks in advance,
Ana Patricia Martins
[[alternative HTML version deleted]]
2007 Oct 15
4
boxplot() confuses x- and y-axes (PR#10345)
Full_Name: Bob O'Hara
Version: 2.6.0
OS: Windows XP
Submission from: (NULL) (88.112.20.250)
Using horizontal=TRUE with boxplot() confuses it as to what is an x- or y-axis.
At least, xlim= and ylim= are the wrong way round, log="x" (or "y") and xaxt=
work as expected, I haven't looked at anything else.
Some code to see if you can reproduce the bug (or discover
2008 Jul 07
2
indicating significant differences in boxplots
Hi all!
Writing a paper using a lot of boxplots I was asked to mark the
significant differences between plotted groups using "stars on
top".
These stars are found freqeuntly in medical papers and printed
above boxplots when there is a significant difference (usually using a
bar to indicate which groups are meant if there are more then two in a
plot).
I was able to calculate whatever
2011 Jun 24
2
text overlap in plot
Hey,
Here is a snippet that generated a boxplot and separates points so that
they do not overlap. I have a problem to avoir text overlapping. Any
help would be helpful.
>
attach(InsectSprays)
boxplot(count ~ spray, data = InsectSprays, outpch = NA)
stripchart(count ~ spray, data = InsectSprays,
vertical = TRUE, method = "jitter",
pch = 21, col =
2006 Apr 24
3
Problem with data frame
Dear r-users,
suppose I have n normal distributions with parameter N(0,i) i=1,2,.......,n
respectively.
Now I want to generate 500 random number for each distribution. And want to
put all 500*n random numbers
in a single data frame.
I tried with following code:
>n=20
random = data.frame(n)
for ( i in 2: length)
{
random[,i] = random(500,mean=0,sd=i)
}
but while executing this I
2008 Aug 22
2
boxplot
Hi, I just made a boxplot but I want to change the thickness of the
line used for the median to look a little thinner. Could anyone please
help me figuring out the R-code to do it?
Thanks, I really appreciate it.
Suyan
2004 Apr 05
1
fligner.test (ctest) (PR#6739)
Full_Name: Karel Zvara
Version: 1.8.1
OS: MS Winows 2000
Submission from: (NULL) (195.113.30.163)
The test statistics of the fligner.test (ctest package) depends on the order of
cases:
> fligner.test(count~spray,data=InsectSprays)
Fligner-Killeen test for homogeneity of variances
data: count by spray
Fligner-Killeen:med chi-squared = 14.4828, df = 5, p-value =
0.01282
>
2009 Jul 30
2
how to change the thickness of the lines of the boxplot outliers
Hi,
I tried to use boxplot function. I am following the ?boxplot and can
change the whisker box width using lwd parameter. However, when
outline=TRUE, the thickness of the circle of the outliers is not
proportionally changed when I change the line width of the whisker
box. There must be another parameter for that. Unfortunately I don't
know.
please help and thanks much in advance.
--