[R] multiple boxplots on the same figure - reducing space in between
ziqizhang at hotmail.co.uk
ziqizhang at hotmail.co.uk
Thu Aug 16 17:56:07 CEST 2012
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| |--[]---------|
|
|
|
|
|
|
|
|
|
two| |----------[]-------|
|
|
|__________________________
I mean to reduce the space between "one" and "two" and maybe also "two" and
x-axis.
How can I do this? Thanks!
--
View this message in context: http://r.789695.n4.nabble.com/multiple-boxplots-on-the-same-figure-reducing-space-in-between-tp4640503.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list