Dear R users,
I generated a boxplots in combination of dotplots using the R code below for
the attached test file.
boxplot(value~score, data = test, outpch = NA, xlab="",ylab="",xaxt='n',
cex.lab=1.2, cex.axis=1.2, main="Correlation of SCNV score and SCNV
value ")
mtext(side=2, "SCNV val
Sorry for repeating the message owing to previous uncorrect html
version delivered (Thank you bert Gunter for the alert).
Marc Schwartz enabled me to order a "two factors" interaction boxplot
with median associated to one factor alone: thanks.
I tried further to generate facets plot (3x2 boxplots
Please stop posting in HTML and use dput() to provide data (as the
posting guide requests).
Cheers,
Bert Gunter
Bert Gunter
"Data is not information. Information is not knowledge. And knowledge
is certainly not wisdom."
-- Clifford Stoll
On Sun, Sep 6, 2015 at 8:37 AM, Sergio Fonda wrote:
Thanks to Marc Schwartz I was able to order a "two factors"
interaction boxplot with median associated to one factor alone.
I tried further to generate facets plot (3x2 boxplots in ggplot2) for the
dataframe reported at bottom and I'm not able to reach a correct plot.
The dataframe is a simulation
Thanks
On Tue, May 20, 2014 at 2:21 AM, William Dunlap wrote:
> Another method uses the core boxplot() function but replaces the usual
> call to split() with a variant that puts all the data at the end of
> the list of splits:
>
> > splitPlusAll <- function(x, ...) c(split(x, ...), list(All=x))
Another method uses the core boxplot() function but replaces the usual
call to split() with a variant that puts all the data at the end of
the list of splits:
> splitPlusAll <- function(x, ...) c(split(x, ...), list(All=x))
> boxplot(with(mtcars, splitPlusAll(wt, list(gear,am), drop=TRUE)))
> boxp
Great,
Thanks everyone :-)
On Monday, May 19, 2014, Richard M. Heiberger wrote:
> tmp <- data.frame(y=c(rnorm(20), rnorm(20), c=rnorm(20)),
> g=rep(letters[1:3], each=20))
>
> library(lattice)
> library(latticeExtra)
> A <- bwplot(y ~ g, data=tmp)
> B <- bwplot(y ~ rep("Y",60), data=tmp, horizo
tmp <- data.frame(y=c(rnorm(20), rnorm(20), c=rnorm(20)),
g=rep(letters[1:3], each=20))
library(lattice)
library(latticeExtra)
A <- bwplot(y ~ g, data=tmp)
B <- bwplot(y ~ rep("Y",60), data=tmp, horizontal=FALSE)
resizePanels(c(Individual=A, "All Together"=B, layout=c(2,1)), w=c(3,1))
## for ev
> I have boxplots by factors for a dataset and trying to include a boxplot to
> represent the entire dataset.
Have a look at last the example in ?boxplot which plots a second set of values
beside a first set. In your case, specifying xlim larger than needed by one and
then using boxplot(x, at=
Read the posting guide, which tells you to provide a minimal reproducible
example [1] (there it's more than one way to accomplish what you have done
already) and post using plain text (so your R code comes through without being
corrupted).
[1]
http://stackoverflow.com/questions/5963269/how-to-
Hi,
I have boxplots by factors for a dataset and trying to include a boxplot to
represent the entire dataset.
Any idea how this would be done?
Thanks
--
Shane
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
https:/
Ah nice. I clearly misunderstood and thought that facet_wrap() made sense.
John Kane
Kingston ON Canada
> -Original Message-
> From: ruipbarra...@sapo.pt
> Sent: Wed, 31 Oct 2012 19:45:33 +
> To: dysonspher...@gmail.com
> Subject: Re: [R] boxplots of various le
u want?
> > >>
> > >> library(ggplot2)
> > >> mydata <- data.frame(result = rnorm(100), group = rep(c("1", "2"),
> > each
> > >> = 50),
> > >> side = sample(c("L", "R"
gt; each
> >> = 50),
> >> side = sample(c("L", "R"), 100, replace = TRUE)
> ,
> >> dtime = rep(1:10, each=10))
> >>
> >> p <- ggplot(mydata , aes( group, result, fill = side ))+
> geom_boxplot
side = sample(c("L", "R"), 100, replace = TRUE) ,
>> dtime = rep(1:10, each=10))
>>
>> p <- ggplot(mydata , aes( group, result, fill = side ))+ geom_boxplot()
>> +
>> facet_wrap(~dtime)
>> p
>>
> +
> facet_wrap(~dtime)
> p
>
> John Kane
> Kingston ON Canada
>
>
> > -Original Message-
> > From: [hidden email]<http://user/SendEmail.jtp?type=node&node=4647989&i=0>
> > Sent: Tue, 30 Oct 2012 11:21:49 -070
ct 2012 11:21:49 -0700 (PDT)
> To: r-help@r-project.org
> Subject: [R] boxplots of various levels
>
> noob here
> trying to make boxplots of some data
> i would like to separate the boxplots according to conditons of various
> levels
> for example:
>
> i have
> group:1 an
2012 18:22
To: r-help@r-project.org
Subject: [R] boxplots of various levels
noob here
trying to make boxplots of some data
i would like to separate the boxplots according to conditons of various
levels
for example:
i have
group:1 and 2, each group performed tests consisting of
condition A,B,C,D
noob here
trying to make boxplots of some data
i would like to separate the boxplots according to conditons of various
levels
for example:
i have
group:1 and 2, each group performed tests consisting of
condition A,B,C,D
side: left and right
time: 1 to 10
I would like separate boxplots of the res
Tarmo Remmel wrote on 09/20/2011 09:51:45 AM:
>
> Hello list members,
>
> I am working with simulated data for landscape pattern analysis. I have
> 1000 replicates of binary (2 colour) gridded landscapes at each
combination
> of 9 levels of class proportion and 11 levels of spatial
autocorrela
Hello list members,
I am working with simulated data for landscape pattern analysis. I have
1000 replicates of binary (2 colour) gridded landscapes at each combination
of 9 levels of class proportion and 11 levels of spatial autocorrelation.
The results are stored in an array as follows:
> dim(s
Hi Martin,
As Sarah said, I do not know of any way to "change the default", but
you can certainly do it manually each time. Here is an example:
## generate some data
set.seed(10)
x <- rnorm(101)
## store boxplot results
s <- boxplot(x, plot = FALSE)
## look at them
s
## replace the stats with lo
Martin,
I don't know of an easy way to make that change, but do note:
The two ‘hinges’ are versions of the first and third quartile,
i.e., close to ‘quantile(x, c(1,3)/4)’. The hinges equal the
quartiles for odd n (where ‘n <- length(x)’) and differ for even
n. Whereas the q
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?
Si
On 2010-07-07 18:24, fsch wrote:
I managed to solve the problem myself using:
q=sort(unique(foram$stage[which(foram$length>0)]))
boxplot(foram$logl~foram$stage, data=foram, outline=F, at=q, axes=TRUE,
add=TRUE, col="gray82", medlwd=1)
points(foram$stage,foram$logl, cex=.1)
However, for fut
Try scatterplot() in the car package. It draws boxplots for X & Y in
the margins, auto scaled to the axes
fsch wrote:
Hello-
I'm new to R, coding and stats. (Oh no.)
Anyway, I have about 12000 data points in a data.frame (dealing with
dimensions and geological stage information for fossil p
I managed to solve the problem myself using:
q=sort(unique(foram$stage[which(foram$length>0)]))
boxplot(foram$logl~foram$stage, data=foram, outline=F, at=q, axes=TRUE,
add=TRUE, col="gray82", medlwd=1)
points(foram$stage,foram$logl, cex=.1)
However, for future reference since this was my fir
Would it really be so hard to
provide commented, minimal, self-contained, _reproducible_ code
?
-Peter Ehlers
On 2010-07-07 15:16, fsch wrote:
Hello-
I'm new to R, coding and stats. (Oh no.)
Anyway, I have about 12000 data points in a data.frame (dealing with
dimensions and geological s
Hello-
I'm new to R, coding and stats. (Oh no.)
Anyway, I have about 12000 data points in a data.frame (dealing with
dimensions and geological stage information for fossil protists) and have
plotted them in a basic scatter plot. I also added a boxplot to overlay
these points. Each worked fine i
On 7/7/2010 1:11 PM, Ian Bentley wrote:
Hi all,
I'm trying to use ggplot to make a boxplot of some data, but I can't seem to
figure out how to make it use the data I'm giving it.
The data is in a data.frame so that it has two columns:
meltl
value L1
1234 1
1234 1
1235 1
...
1255 1
2335
What about this:
> testdata <- cbind.data.frame(value = runif(100), L1 = rep(1:10, each=10))
> head(testdata)
value L1
1 0.3370902 1
2 0.6766098 1
3 0.2433171 1
4 0.8848674 1
5 0.5253600 1
6 0.4067238 1
> tail(testdata)
value L1
95 0.8149121 10
96 0.5186669 10
97 0.1080695 1
Hi all,
I'm trying to use ggplot to make a boxplot of some data, but I can't seem to
figure out how to make it use the data I'm giving it.
The data is in a data.frame so that it has two columns:
>meltl
value L1
1234 1
1234 1
1235 1
...
1255 1
2335 2
3444 2
...
10001 50
12311 50
...
The fi
On Fri, 2010-05-14 at 09:31 -0700, Angelica wrote:
> Hello,
> I need to make some boxplots, but I only have the stats and not all the
> data. Is there any function or command that I could use?
>
> Thanks,
> Angelica,
?bxp
See ?boxplot and the object returned by boxplot from one of the exampl
Hello,
I need to make some boxplots, but I only have the stats and not all the
data. Is there any function or command that I could use?
Thanks,
Angelica,
--
View this message in context:
http://r.789695.n4.nabble.com/Boxplots-in-R-tp2216852p2216852.html
Sent from the R help mailing list arc
On Feb 22, 2010, at 5:11 PM, kupz wrote:
I have four boxplots, stacked on top of one another (vertically).
There are
five classes that the continuous variable is set against. The
problem I have
is the data for the second boxplot only contains values for four of
the five
classes.
I woul
I have four boxplots, stacked on top of one another (vertically). There are
five classes that the continuous variable is set against. The problem I have
is the data for the second boxplot only contains values for four of the five
classes.
I would like to include the space in this graph so there i
I'm guessing that you want side-by-side boxplots.
If that's correct, then try the following.
It stacks the y-values, makes an appropriate grouping
factor and plots with reasonable spacing.
dat <- read.table(textConnection("
tank TanksTotal cons_hat
1aa4 5.651017 5.59
2aa5
I have a data set with four columns and need to make boxplots from them.
Data is as follows:
tank TanksTotal cons_hat
1aa4 5.651017 5.59
2aa5 5.017499 5.29
3aa6 4.894238 4.69
4cc4 3.986347 3.40
5cc5 4.099442 3.58
6cc6 4.15052
Try this
Rich
tmp <- data.frame(
y=rnorm(100),
category=rep(factor(letters[1:5]),each=20),
level=rep(factor(0:1), length=100))
tmp
table(tmp[,2:3])
tmp$y[with(tmp, category=="a" & level=0)] <- NA
tmp$y[with(tmp, category=="a" & level==0)] <- NA
tmp$y[with(tmp, category=="e" & level==1)] <- NA
t
reproducible code.
On Wed, Jun 24, 2009 at 8:53 AM, Santosh wrote:
> Dear R-sians..
>
> I am trying to plot boxplots with side-by-side option.. I tried some of the
> posted suggestions and could not make it work due to unequal sizes of
> categories...
>
> e.g.
> weekly measured water depth values
Dear R-sians..
I am trying to plot boxplots with side-by-side option.. I tried some of the
posted suggestions and could not make it work due to unequal sizes of
categories...
e.g.
weekly measured water depth values are categorized into 5 levels based on
their values
such measurement is again cate
.
Statistical Data Center
Intermountain Healthcare
greg.s...@imail.org
801.408.8111
> -Original Message-
> From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-
> project.org] On Behalf Of johnhj
> Sent: Monday, April 06, 2009 5:46 AM
> To: r-help@r-project.org
> Subjec
Hii,
Is it possible to put Boxplots at the top of the Barplots ? I will describe
the standard derivation with a Boxplot at the of the Barplots. It could also
be "line" instead of Boxplot...
Can anybody help me how to do it ?
greetings,
j.
--
View this message in context:
http://www.nabble.c
Does boxplot(as.data.frame(final)) do what you want?
--Adam
On Mon, 2 Feb 2009, Vemuri, Aparna wrote:
Dear R users,
I have a matrix "final" which looks like this:
final
oSO4 oNO3 mSO4 mNO3
[1,] 3.3728 0.2110 1.9517421 1.01883602
[2,] 0.8249 0.0697 1.5970292 0.113687
ldlife Service
California, USA
--- On Mon, 2/2/09, Vemuri, Aparna wrote:
> From: Vemuri, Aparna
> Subject: [R] Boxplots by variable
> To: r-help@r-project.org
> Date: Monday, February 2, 2009, 4:19 PM
> Dear R users,
>
> I have a matrix "final" which looks
Check out ggplot2:
http://had.co.nz/ggplot2
Particularly:
http://had.co.nz/ggplot2/geom_boxplot.html
Looks like you'll have to melt your data to long format first though,
here's a tutorial:
http://www.statmethods.net/management/reshape.html
On Mon, Feb 2, 2009 at 8:19 PM, Vemuri, Aparna wrote:
Dear R users,
I have a matrix "final" which looks like this:
final
oSO4 oNO3 mSO4 mNO3
[1,] 3.3728 0.2110 1.9517421 1.01883602
[2,] 0.8249 0.0697 1.5970292 0.11368781
[3,] 0.2636 0.1004 0.6012445 0.24356332
[4,] 8.0072 0.3443 6.1016998 3.63207149
[5,] 13.5079 0
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
I have no idea of what you would like to do with the tick marks. I
assume you can always use 'axis' to label your axis:
boxplot(len ~ dose, data = Tooth
Hi,
I'd like to change the y-tickmarks of a boxplot.
But it doesn't work with yaxp (like I would do it in a plot-function).
Can someone help me out?
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the p
We need to have some idea of what the data looks like and what code you have
been trying to make any sensible suggestions.
Can you supply a small example ?
--- On Thu, 11/13/08, Lathouri, Maria <[EMAIL PROTECTED]> wrote:
> From: Lathouri, Maria <[EMAIL PROTECTED]>
> Sub
Dear all,
I am trying to make boxplots in one diagram but it is not working. Actually I
have a large dataset, around 35 water quality variables with different units
and of course in different ranges (some are orders of magnitude bigger than
others). I want to produce one diagram with all the b
: +61 7 3286 7700
mailto:[EMAIL PROTECTED]
http://www.cmis.csiro.au/bill.venables/
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Georg Ehret
Sent: Wednesday, 30 April 2008 1:09 PM
To: r-help
Subject: [R] boxplots
Dear R user group,
I am
?boxplot
The boxplot does not show the mean but the median:
median(c(0,15,0,60,0,0,0,0,0,60,60,0,60,0,30,0))
> b <- boxplot(c(0,15,0,60,0,0,0,0,0,60,60,0,60,0,30,0))
b$stats
[,1]
[1,]0
[2,]0
[3,]0
[4,] 45
[5,] 60
_
Professor Michael Kubovy
Univ
Dear R user group,
I am working with boxplots and cannot solve the following problem:
> data<-c(0,15,0,60,0,0,0,0,0,60,60,0,60,0,30,0)
> data
[1] 0 15 0 60 0 0 0 0 0 60 60 0 60 0 30 0
> boxplot(data)
The boxplot has the first hinge and the mean-bar both at 0... Why is this
the mean
As with many things, I suspect that someone has created plots of this
sort, but no-one seems to have contributed a function to do so. If
you find/create one, send it to me and I'll be glad to include it in
either gmodes or gplots as appropriate.
One place to check before writing one is Fra
Hello all,
I posted a similar question recently but I suspect that it was not well
enough formulated to trigger any answers. So I try again:
Is there a way to produce boxplots (or something similar) that uses the
estimated fixed effects of an lme{nlme} object? When I want to know the
mean, I use
Dear all!
W_XP, R 2.6.0
I am evaluating variety trails over several years, where the different
cultivars have not been present in the dataset the same number of years.
I use lme{nlme} to fit random effect models and estimable{gmodels} to
extract the fixed effects. The general model is:
lme(y ~
57 matches
Mail list logo