Displaying 20 results from an estimated 10000 matches similar to: "Quasi-bug in boxplot()."
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
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
2010 Feb 16
3
error : unused argument(s) when boxplot
Dear all,
I am a total beginner in R, so sorry if this is the wrong place. I am using R 2.10.1 on a Mac (Mac OS 10.6.2).
I have this small dataset :
growth sugar
75 C
72 C
73 C
61 F
67 F
64 F
62 S
63 S
I have no problem reading the table, or getting the summary, but if I try boxplot(growth~sugar, ylab="growth", xlab="sugar", data=Dataset), I have the following error :
2007 Jun 26
4
boxplot and bxp do not respect xlim by default (PR#9754)
Full_Name: Steve Ellison
Version: 2.4.1
OS: Windows, Linux
Submission from: (NULL) (194.73.101.157)
bxp() allows specifcation of box locations with at=, but neither adjusts xlim=
to fit at nor does it respect xlim provided explicitly.
This is because bxp() now includes explicit xlim as c(0.5, n+0.5), without
checking for explicitly supplied xlim (or ylim if horizontal).
This also prevents
2002 Jul 21
3
boxplot(): formating median in another linethickness?
Dear guRus,
I want to do some boxplots, but the median sould appear in another
line-thickness and another color.
I do not know, what to do in order to realise my wishes.
Sorry for that question, but I am new to R.
cheers
steph
--
Linux: the operating system with a CLUE...
Command Line User Environment.
--------------------------------------
Stephan Holl
GnuPG Key-ID: 11946A09
ICQ#
2011 Jun 07
1
Rv: Rv: limites de un boxplot
Hola, por mi parte doy por zanjado el tema. He llegado a la causa raíz de mi
problema: falta de conocimiento de la forma en la que se debe usar la ayuda de
las funciones de R y gracias a vuestra colaboración, ¡ya se cómo hacerlo :) !
Nuevamente,gracias a todos. Saludos,
Fernando
-- ____________________________________
Hola,
La misma función boxplot indica la existencia de estas
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.
2000 May 18
0
Control of box and staple width in boxplot()
I''d like to make the following changes (differences are from R1.0.1):
boxplot.default()
1c1
< function (x, ..., range = 1.5, width = NULL, varwidth = FALSE,
---
> function (x, ..., range = 1.5, width = NULL, varwidth = FALSE,
boxwex=0.8,
37c37,38
< bxp(groups, width, varwidth = varwidth, notch = notch,
---
> bxp(groups, width, varwidth = varwidth,
2003 Mar 12
1
cex.axis in boxplot (PR#2628)
Hi,
the graphical parameter "cex.axis" does not have any affect for "boxplot":
data(iris)
boxplot(iris[,1:4], ylab="y", cex.lab=2, cex.axis=2)
The patch is simply adding "cex.axis" to the search for axis relevant
parameters in "bxp":
ax.pars <- pars[names(pars) %in% c("xaxt", "yaxt", "las",
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.?
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
2006 Nov 12
2
Unexpected behavior in boxplot
When plotting using the cex.axis argument to boxplot(), the size of the
plotting symbols beyond the whiskers of the boxplot are being changes.
Example:
par(mfrow=c(2,1))
boxplot(c(rnorm(10), 10), horizontal=TRUE, main="Test", las=2, cex.axis=2)
boxplot(c(rnorm(10), 10), horizontal=TRUE, main="Test", las=2, cex.axis=1)
This is from the following line in bxp()
2012 Mar 12
2
How to create interrupted boxplot
Hello,
I have created two boxplots with following R code. There is one outlier in
B group.
The outlier is 33. But the all other data are between 0 to 4.
How can I skip y-axis around 5 to 25, and expand 0-4 for this case. Also I
want keep the outlier in my boxplot.
I want my boxplot look like the second one, keep the outlier, and make an
interrupt of y-axis from 5 to 25.
Thanks,
Jianghong
2007 Jan 14
4
Controlling size of boxplot when it is added in a plot
Greetings,
I am trying to add a boxplot to the bottom of a histogram, right
between the histogram bars and the x axis. Here is the code I am
using at the moment (the par line is probably not relevant for our
discussion):
hs <- hist(x, breaks = 20, plot = F)
par(mar = c(3,3,2,1))
hist(x, breaks = 20, main = NULL, ylim = c(-2, max(hs$counts)))
boxplot(x, horizontal = T, axes = T, add =
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
2003 Sep 11
0
extending boxplot with space() argument?
A student asked me if it was possible to draw boxplots where the boxes
themselves were grouped: I was able to hack boxplot.formula() to do the
right thing, more or less, by incorporating an argument (space) and some
code from barplot.
with the extended boxplot.formula() below, the following commands "do the
right thing" (produce boxes grouped by levels of the second factor):
r =
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
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
2008 Feb 19
1
Two bwplots in one single graph
Dear list,
With the below codes, I got 8 bwplots but I would like to put 2 bwplots in one single graph so that instead of 8 separate bwplots I would have 4 graphs, each contains 2 bwplots. How can I do that?
Another question is how do I add the mean as a point to each boxplot in the bwplot but also keeping the median line.
for (i in 1:length(dat)){
windows()
with(dat[[i]],
2005 Apr 20
2
Label / Tick under single Boxplot
Hi!
I am trying to get the tick / label under a stacked
boxplot with only a single
data row. With >=2 rows it works, but with a single
one the tick resp. my class
name is not printed below the boxplot. Can anybody
point me to what am I doing
wrong?
For example:
boxplot(data.frame(c(3,4,5)),names=list("a"),beside=F)
Here, I would like to have the "a" below the single