Displaying 20 results from an estimated 20000 matches similar to: "A question about boxplot: mean and median"
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]]
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
2006 Apr 27
3
ordered boxplots
Dear List-Members,
I would like to produce a ordered boxplot in which the categories with
the smallest median are plotted at the left end and the box with the
largest median at the right.
Thanks in advance for any advices
Thomas H.
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,
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
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]]
2004 Aug 26
5
Problems with par() and labels with boxplot
Quite a simple one really!
When I run boxplot(), the labels on the X axis are horizontal, and I
want them vertical. So I did:
par(las=3)
boxplot(...)
And my labels just aren't there anymore....
Any help???
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
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,
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]]
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]]
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
2018 Feb 13
3
Suppress horizontal mean line in beanplot()
Hi,
I would like to use the beanplot() function from the beanplot package.
Unfortunately, I can't find out how to suppress the dashed horizontal
line, that shows the overall mean.
In the help I've found the argument "overallline", but it only allows
for "mean" or "median" .
I have tried overallline = F, overallline="n", and
2007 Apr 06
5
Labelling boxplot with fivenumber summary
I am very new to R so forgive me if this seems basic but I have done extensive searching and failed to come up with the answer for myself.
I am trying to label a boxplot I have created with the values for the median, upper and lower quartiles and max and min values. I have been unable to do this or find anything on the net to say how it might be done. Is this possible and if so how? Regards,
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.
--
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,
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
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
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 =