Displaying 20 results from an estimated 20000 matches similar to: "boxplot: auto sizing for ylim variable"
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 =
2010 Apr 07
1
How to specify only minimum ylim parameter for boxplot
Readers,
For a command:
x<-a data matrix
y<-another data matrix
z<-and another data matrix
boxplot(c(x,y,z),las=1,xaxt="n",ylab="text",xlab="text",ylim=c(0,..?))
is it possible to specify only that the boxplot graph starts with
value 0 at the bottom of the ordinate (y axis) and the maximum value
is determined by data in x,y and z?
Yours,
rhelp at
2008 Oct 06
3
horizontal boxplot + xlim
Hi there,
I get a strange behaviour of a boxplot with the following code. There seems to
be a problem with the xlim-parameter. Did I do anything wrong? What else can I
do to force the boxplot to have a defined x-range?
x <- rnorm(100)
boxplot(x, notch=TRUE, xlab=parameter, xlim <- c(-4,4), horizontal = TRUE)
Antje
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
2005 Sep 28
1
boxplot and xlim confusion?
I have some code as shown below. Basically, I would like three
boxplots to be set next to each other with no ylabels on the two
"inner" plots, and I want the same x axis range on all three. However,
it seems like boxplot does not respect the xlim setting. I've tried
the various ways I thought would work (par, boxplot(...xlim=)) but
none of them seem to work. I then tried plot.window,
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
2012 Jul 12
4
Adjusting format of boxplot
Hi,
I managed to use the attached data set and figure out the following:
flies <- read.table("example12_1.dat",header=TRUE,sep="\t")
boxplot(long ~ group,
data = flies,
horizontal = TRUE,
col = "red")
I'm very new to R and would like some help with the following:
1. Change the order on the y-axis from 1, 2, 3, 4, 5 to 5, 4, 3, 2, 1.
2010 Feb 09
1
Aggregate dataframe variables, return more than 2 vars
Hello r-devel,
I have data.frame with 3 columns and I would like to group by 1 column(id),
find the max of the third column (date) and return the data for that max
date value along with the id and the value in the second column.
Example:
>dat <- data.frame(id = rep(1:3, 3), date = as.Date(rep(c("2005-08-25",
"2005-08-26", "2005-08-29"), each = 3)), decod =
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 :
2009 Oct 10
1
auto.key legend color different from actual plot
Dear All,
I have created a barchart, but the legend created by auto.key does not match
the actual graph. Can someone give me some hint here?
For example, my coding are:
Library(lattice)
dataset.table <-
table(data.frame(id=c("a","b","c","a","c","b","a"),colour=c("blue","green","
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
2000 Dec 08
1
ylim doesn't work in boxplots?
I want to leave a little extra room at the bottom for a legend in a box plot,
but I find that the boxplot function ignores ylim. Is there any way around
this? Thanks.
______________________________________________________________________
Stuart Luppescu -=-=- University of Chicago
$(B:MJ8$HCRF`H~$NIc(B -=-=- s-luppescu at uchicago.edu
2008 Feb 15
2
Controling width of boxes in boxplots
Hi,
I want to add boxplots to a scatterplot:
plot(x,y, xlim=c(80,120),ylim=c(80,120))
boxplot(y,add=TRUE,at=118)
boxplot(x,add=TRUE,at=118,horizontal=TRUE)
How can I control the width of the boxes (say, I'd like them to be of
width 3 in the variables' scales). I've tried the "width" parameter
but failed.
Thanks in advance,
Marcin
2011 Feb 24
1
Boxplot not doing what I think it should
My box plot below is drawing its upper whisker all the way to the last point, instead of showing the point as an outlier. Am I misunderstanding, or is it a bug?
Help(boxplot) states for the parameter ?range? that ?this determines how far the plot whiskers extend out from the box. If range is positive, the whiskers extend to the most extreme data point which is no more than range times the
2010 Apr 20
3
Basic doubt on ylim
Hi all,
I'm a newbie with R and with a very basic question.
Can I define the minor unit for ylim? For example, I have a y scale ranging
from 1 to 14, jumping automatically every 2 units, but I want it to jump 1
unit at a time...is it possible? I tried something like
>boxplot(bla[,1], xlim=c(1,15,1)
and it didn't obbey...
:( any suggestion??
Cheers from Portugal!
Patrícia
--
View
2006 Nov 07
2
Boxplot
Hi,
I am new to R and am still trying to get a grip of it.
I have data in this format:
Run Lab Batch Y
1 1 1 1 608.781
2 2 1 2 569.670
3 3 1 1 689.556
4 4 1 2 747.541
5 5 1 1 618.134
6 6 1 2 612.182
7 7 1 1 680.203
8 8 1 2 607.766
9 9 1 1 726.232
and I want to make a boxplot of the Y values for each
2001 Dec 10
1
boxplot labels incorrect when horizontal = TRUE (PR#1207)
#Example:
y <- rnorm(10)
group <- gl(2,5)
plot(y ~ group, horizontal = TRUE) # BUG: default xlab & ylab interchanged
plot(y ~ group, horizontal = FALSE) # OK: supplies correct default xlab & ylab
# Using boxplot() instead of plot() omits default axis labels altogether
# (not sure if this is intentional):
boxplot(y ~ group, horizontal = FALSE) # no default axis labels supplied
2002 Dec 01
2
Quasi-bug in boxplot().
There seems to be a problem with partial matching of argument names
in boxplot(), in respect of the "horizontal" argument. I don't
recall seeing this issue discussed previously. My apologies if I am
being redundant. (A scan of CRAN revealed that someone had
experienced problems with the "horizontal" argument, but he was
spelling it out in full, so that was a different
2011 Jun 07
2
limites de un boxplot
Hola a todos,
Tengo una pregunta: ¿cómo puedo forzar para que el eje de ordenadas de estos dos
boxplot esté por ejemplo entre -10 y 10? He consultado la ayuda de la función
pero no he sabido cómo hacerlo.
a<-rnorm(1:100)
boxplot(a)
b<-rnorm(2,1:100)
boxplot(b)
Disculpad si la pregunta es muy básica. Ojo: no quiero juntar los dos gráficos
en un solo boxplot, sino que su rango del eje
2008 Feb 29
3
Fitting long names in boxplot
I have the following code:
subsetTimeDataPlot <- boxplot(subsetTimeData$time ~
subsetTimeData$build, horizontal=True, col="lightblue", ...)
The 'names' component consists of strings that can be up to 20-30
characters long.
How would I go about drawing the names vertically (not the boxplot) or
shrinking the names text (I tried cex.names=0.7 but this didn't help).