Displaying 20 results from an estimated 59 matches for "boxwex".
2007 Jun 16
1
Lines connecting the boxes in a boxplot
...t too confusing after
adding the lines... Is it possible? Has anyone done this before?
Sorry if this has been asked before or is a standard feature, I simply
have now clue how to name the feature I want. Ergo: I cannot search
for it.. :\
Regards,
Arne
PS: this is my current code
require(gplots)
boxwex=0.15
data <- read.table("all_runs_fitness.data");
colnames(data)=c("model","matrix","fitness")
boxplot(fitness ~ matrix,
data=data, boxwex=boxwex, at=(1:7 - 0.2),
main="Fitness for Matrix/Models", xlab="Matrixtype",...
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, boxwex=boxwex,
> notch = notch,
bxp()
1c1,2
< function (z, notch = FALSE, width = NULL, varwidth = FALSE,
notch.frac = 0.5,
---
> func...
2012 Feb 15
2
Error in rep.int(boxwex, n) : negative length vectors are not allowed
...r a matrix of?196475 x2 dimension. I loaded the data with read.table. On one dimension, there are strings (names) and on the other dimension, the floats between 0 and 1. When I invoked plot by setting x to names and y to floats and ylim = c(0,1), I got the following error message:
Error in rep.int(boxwex, n) : negative length vectors are not allowed
Does it come from the large-size dimension of the matrix and which vectors get a negative length?
Best,
Carol
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 = "tooth length", ylim = c(0, 35), yaxs = "i")
boxplot(len ~ dose, data...
2010 Sep 26
2
Changing x-axis on boxplot
...also tried
variations in the names= argument but can't get it to work.? Ideally I would
like tickmarks on either side of each factor with the number for the level
centered between the two tick marks.? Any suggestions?
?
Thanks,
?Tim?
Example:
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 = "tooth length",
??????? xlim = c(0.5, 3.5), ylim = c(0, 35), yaxs = "i&quo...
2012 Mar 12
2
How to create interrupted boxplot
....50,0.50,2.00,33.00)
Grp_Example =c("A","A","A","B","B","B","B","B")
Example_Data= cbind(Example,Grp_Example)
attach(Example_Data)
boxplot(Example ~ Grp_Example,main=paste("Boxplot of Example"),
pars = list(boxwex = 0.25, staplewex = 0.25, outwex = 0.25))
boxplot(Example ~ Grp_Example,main=paste("Boxplot of Example"),ylim=c(0,4),
pars = list(boxwex = 0.25, staplewex = 0.25, outwex = 0.25))
[[alternative HTML version deleted]]
2008 Nov 28
1
side by side boxplots
Good Morning,
I am trying to get side by side boxplots of two groups on the
same variable. The last item under ?boxplot led me to some useful
code.
I use "boxwex" to make the boxes narrower, "at" to shift them
over and "add" to draw them both on the same graph. Something along
the lines of:
attach(group1)
boxplot(Y~X, col="blue", boxwex=.4, at=1:n+.2)
attach(group2)
boxplot(Y~X, col="red", boxwex=.4, at=1:n-....
2011 Aug 18
1
Specifying data point locations on x-axis using boxplot() and points()
...ng is my script.
boxplot(F2.E$D.value ~ F2.E$consonant,
main = "F2",
ylim = c(-4,10),
ylab = "Sensitivity (d')",
xlab = "Discrimination Type",
names = (c("E","E","E")),
col = "light grey",
border = "grey",
boxwex = 0.2,
at = 1:3 - 0.27
)
points(jitter(rep(1:3, each = 8),0.1),
unlist(split(F2.E$D.value,F2.E$consonant)),
cex = 0.5,
pch = 16)
boxplot(F2.J.pre$D.value ~ F2.J.pre$consonant,
add = TRUE,
col = "light grey",
border = "grey",
names = (c("J Pre","J...
2003 Sep 11
0
extending boxplot with space() argument?
...t.formula, which is ugly and incomplete. Can
anyone suggest an elegant way to deal with this?
------
"boxplot.formula" <-
function (formula, data = NULL, width=1,
space = 0.5, xlim=NULL, ylim=NULL,
horizontal = FALSE, at = NULL, log="",
boxwex=0.8,
add=FALSE, ..., subset)
{
if (missing(formula) || (length(formula) != 3))
stop("formula missing or incorrect")
m <- match.call(expand.dots = FALSE)
if (is.matrix(eval(m$data, parent.frame())))
m$data <- as.data.frame(data)
m$... <- m$space <...
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 =
2004 Mar 17
1
(no subject)
Hi Marc,
Thanks for the response. Apologies for the lack of detail... I have used
'boxwex', 'at' and ylim, to place things nicely, except I know have some
spare room at the end of the plot, which I would like to get rid of.... Your
suggestion to use 'add' per the example is one I had not thought of. Does
any one know of a simpler approach, to use add I'm need to...
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
2004 Mar 10
3
Center labels on a boxplot
...+ 1:12)
myDF2 <- data.frame(spp1 = c(1,1,0,0,0,0,0,0,1,0,0,1),
spp2 = c(0,0,1,1,0,0,0,1,0,0,1,0),
spp3 = c(0,0,0,0,1,1,1,0,0,1,0,0),
aVar = runif(12, 1, 10) + 1:12)
boxplot(aVar ~ spp1 + spp2 + spp3, data = myDF1, boxwex = 0.25, at =
1:3 - 0.2,
names = c("","",""),
ylab = "A Varirable of Extreme Interest",
ylim = c(0,24))
boxplot(aVar ~ spp1 + spp2 + spp3, data = myDF2, boxwex = 0.25, at =
1:3 + 0.2,...
2012 Aug 15
4
boxplot help
...month
(jan - dec), roof (TT6, TT13 or BARE) and temp (the continuous variable that
i want to plot).
So i want boxplots of the three roof treatments in every month organised in
chronical order along x axis 2011 - 2012.
my code at the moment is:
> boxplot(Temp~Month, data=eagle, at = 1:12 - 0.5, boxwex=0.25, subset=Roof
> == "TT6", col = "green")
> boxplot(Temp~Month, data=eagle, add=TRUE, at = 1:12 - 0.1, boxwex = 0.25,
> subset=Roof == "TT13", col = "darkgreen")
> boxplot(Temp~Month, data=eagle, add=TRUE, boxwex=0.25, at = 1:12 + 0.2,
> sub...
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",
ylab = "tooth length", ylim = c(0, 35), yaxs = "i")
boxplot(len ~ dose, data...
2010 Nov 29
1
surpressing tickmarks / labels x-as for two sets of boxplot (plotted as stacked boxplots)
...boxplot
with xaxt="n".
But for the second this does not work!
I want to plot the tickmarks and labels? at position at=1:7, as below using the
axis function.
But with this code also tickmarks and labels are plotted at position
at=1:7+0.15.
boxplot(coefs ~ factor, data = temp,
??????? boxwex = 0.25, at = 1:7 - 0.15,
??????? subset = experiment == "first", col = "red",
???? ??? xlab = "factor",xaxt="n",
??????? ylab = "individual estimates")
boxplot(coefs ~ factor, data = temp, naxt="n",add = TRUE,
??????? boxwex = 0.25, at =...
2011 Mar 13
3
how to change the margins of a plot area
Dear all,
I am ploting two boxplot of two chemical variables using the format
boxplot(Alkalinity, logAlkalinity, log="y", col=c("lightblue"), lwd=0.6, boxwex=0.3)
However when I plot like this, the distance between the two boxplots is very big and as well the distance of each boxplot from the plot area, left and right. How can I minimise that distance between the boxplots and as well the distance of each boxplot from the left and right margin of the pl...
2010 Oct 18
1
boxplot ranked x labels
...ffer
thanks
Sibylle
R-code (as later insect stages have higher means, ordering was based
on mean or median...)
SOPRA<-read.table("SOPRA206_WG_WAE.txt", na.strings="0", header=TRUE)
ordered<-order(tapply(SOPRA$antpop, SOPRA$EI, mean))
boxplot(antpop~ordered, data=SOPRA, boxwex=0.20, at=1:14-0.2,
scales=list(x=list(rot=45)), notch=TRUE, xlab = "EVENT", ylab = "DOY",
ylim = c(100,350), yaxs ="i", col="red", subset=(wg == "ctrl"))
boxplot(antpop~ereignis, data=SOPRA, add=TRUE, boxwex=0.20,
at=1:14+0.2, xaxt="n&quo...
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 stripcharts a bit to the left o...
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 the space between them?
Currently they look like this:
|
|
one| |--[]---------|
|
|
|
|
|
|
|
|
|
tw...