Displaying 20 results from an estimated 9000 matches similar to: "Comples Boxplots in R . Resources"
2008 Feb 04
7
adding the mean and standard deviation to boxplots
Dear list,
How can I add the mean and standard deviation to each of the boxplots using the example provided in the boxplot function?
boxplot(len ~ dose, data = ToothGrowth,
boxwex = 0.25, at = 1:3 - 0.2,
subset = supp == "VC", col = "yellow",
main = "Guinea Pigs' Tooth Growth",
xlab = "Vitamin C dose mg",
2010 Sep 26
2
Changing x-axis on boxplot
Dear List,
?
I am creating a boxplot with two subsets, very similar to the example by Roger
Bivand at ?boxplot (reproduced below).? I am trying to change the labels on the
x-axis to have one number to cover both subsets.? I can do this in other plots
by using axis=FALSE followed by a separate axis() command.? I have also tried
variations in the names= argument but can't get it to work.?
2002 Jun 07
2
offset labeling boxplots
Hello everybody,
often I plot boxplots with different number of boxes (up to 200 boxes).
I'd like to give every box a readable label on the x-axis. Therefore, I
decrease the fontsize of the names and plot them vertical.
But if you zoom into the plot (pdf) you will find an offset between the
tickmark and the label - the label is shifted to the right.
If you vary the box.count in the
2008 Sep 12
2
Again, about boxplot
Thank you for your guys reply for my previous question. But I got one more
question about the boxplot. With the code in the R-help:
boxplot(len ~ dose, data = ToothGrowth,
boxwex = 0.25, at = 1:3 - 0.2,
subset = supp == "VC", col = "yellow",
main = "Guinea Pigs' Tooth Growth",
xlab = "Vitamin C dose mg",
ylab =
2001 May 26
1
boxplots
Was there ever a convenient method provided to add boxplots to the current
plot at specified x values? There was a question by Martin Maechler some
time ago here, but I could seem to find any satisfactory resolution of it.
I see that there is an add=T option to boxplot and bxp, but I don't see
how to set the x-values.
url: http://www.econ.uiuc.edu Roger Koenker
email roger at
2012 Mar 15
3
Adding mean values to boxplots
Hello there,
I was wondering if anyone might be able to help me as I'm pretty new to R.
I'm trying to create a boxplot from a data table returned from an sproc. I
have the following code, which generates the plot as I'd like it:
library("RODBC");
conn <- odbcConnect("datawarehouse"); # connect to datawarehouse
results <- sqlQuery(conn, "call
2012 Aug 16
2
multiple boxplots on the same figure - reducing space in between
Hi
I have two vectors of integers and I am plotting a box plot that contains
both vectors. I have done the following:
vec1 < -scan("file1")
vec2 < -scan("file2")
boxplot(vec1, vec2, range=0, horizontal=TRUE, names=c("One","Two"),
boxwex=0.15)
I managed to get both boxplots on the same figure but there they are wide
apart. Is there a way to reduce
2005 Oct 28
1
multiple boxplots
Hello,
I want to plot 3 boxplots [ par(mfrow=c(3,1)) ] but the first one has 8
groups, the 2nd has 7 and the third has 6. But I the groups to line up:
1 2 3 4 5 6 7 8
2 3 4 5 6 7 8
3 4 5 6 7 8
where the numbers actually refer to years. I suspect I have to manipulate
the function bxp(). Is there a relatively simple way to do this? Thanks for
any help.
Jeff Breiwick
NMFS, Seattle
2011 Jul 29
2
boxplots
Hi!
My name is Martin and I have a problem concerning the boxplot function
in R. I want my boxes to be limited by the 1st and 3rd quartile and NOT
the 'hinges' values that are the default setting in R.
Do anyone knows if there is any command that I could do to change this
default setting?
Sincerely
Martin Olofsson
2005 Apr 19
1
controlling the x axis of boxplots
v 2.0.1 (sooooh old!) on Win2k
I think I know the answer to this but I can hope ...
I have data for continuous variables (measures of residents) by a
categorical variable in range (1,22), the units in which they live.
I want to plot these data with a pair of boxplots one above another
with same x-axis (1,22) using par(mfrow=c(2,1)) and then plotting
first for the women then for the men.
2003 Jul 27
1
Drawing boxplots in pairs function
I tried the following command to produce boxplot of diagonals in pairs
function:
> pairs(t1.5,diag.panel=boxplot)
Error in pairs.default(t1.5, diag.panel = boxplot) :
The panel function made a new plot
The graphics device draws two graphs, one with a rectangle at (1,1) in 7x7
layout and the other with boxplot(t1.5$wind) at (1,2).
pairs function help file has a similar example with
2005 Sep 28
7
Plot Data Points in boxplots
Hello,
I would like to plot my data in a fashion similar to a boxplot, but
plot the true data points without a box, just overlay lines of the
summary generated by the boxplot. I have less than 10 observations
within each group, so I think showing the actual data would be more
effective than the box of the boxplot. I have been unable to find a way
to do this.
Here is example data:
>
2012 Jan 29
1
Modifying whiskers in boxplots?
Hello,
I know this has been covered on here before, but as a complete novice, I
need a little more guidance. I would like to produce boxplots with the
whiskers extending to the 10 and 90th percentiles. I found this code:
myboxplot.stats <- function (x, coef = NULL, do.conf = TRUE, do.out =
TRUE)
{
nna <- !is.na(x)
n <- sum(nna)
stats <- quantile(x, c(.1,.25,.5,.75,.9), na.rm
2001 Jul 27
2
boxplot question
I'm graphing a series of boxplots of grouped data inside a function that
passes the data.frame, the names vector, and a title vector.
Because both the data subset changes with each successive pass through the
function, occasionally the names vector turns up with only one group to
plot. This is an expected result. However, when the names argument in
boxplot has only a single name, it
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
2004 Jan 22
3
adding mean to boxplot
I am a new and unexperienced user of R and got so far as to know how to produce
boxplots. I have no experience of messing with function code, so presently I do
not know how to create a boxplot with group means instead of group medians. If
somebody could help me either replace the median with the mean or superimpose
the mean onto the existing boxplot, it would be appreciated.
2011 Nov 17
1
Small inconsistency with boxplot
Dear R-core team,
I think I found a small inconsistency in the boxplot function. I don't want to post it as a bug since I'm not sure this might be considered as one according to the FAQ --- and this is not a major problem. Don't hesitate to tell me if I'm wrong.
If you try to do a boxplot on a matrix and set the "at" argument to some vector different from 1:n, n is the
2000 Dec 10
1
more boxplot questions
Hello,
I have a couple more questions about boxplots. In the books I've read on
statistics (I'm not a statistics expert but just a poor engineer trying
to help his wife with the analysis of the data she gathered for her
medieval history PhD), I seen two kinds of box plots: one using
quartiles to determine the height of the rectangles and whiskers which
is what the standard R boxplot does,
2001 Nov 25
2
Boxplots using percentiles?
The standard R boxplot appears to use quartiles to determine the height of
the rectangles and a range parameter - RNG - (default=1.5 I think) that
determines the length of the whiskers as <= RNG x Interquartile Range. Is
it possible to instead define the range as extending to the 95th percentile?
If so, how would this be done?
nb, I'm plotting multiple boxplots on a single chart so a
2012 Sep 08
4
method or package to make special boxplot
Hi, All,
I am trying to use R to make the following type of boxplot while I couldn't
find a way to do it.
My dataset looks like X1 Y1 X2 Y2.... SPLIT. The split highlights my
experiment details and both x and y are continuous numerical values. I
need to plot y vs. x with split as legend and boxplot has to be used for
all splits. May I ask how to get it? Currently available boxplot only