Displaying 20 results from an estimated 8000 matches similar to: "Boxplot of multiple vectors with different lengths"
2011 Dec 12
1
Please delete my e-mail judit.barroso@montana.edu
Please,
I am receiving lot of e-mails that I do not want.
Please could you delete my e-mail.
Thank,
Judit
-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On Behalf Of Thomas Adams
Sent: Monday, December 12, 2011 3:22 PM
To: Bert Gunter
Cc: r-help at r-project.org
Subject: Re: [R] Boxplot of multiple vectors with different lengths
Bert,
2011 Jun 22
2
Linking 2 columns in 2 databases and applying a function
Hi all,
I have two datasets, one that represents a long-term time series and one
that represents summary data for the time series. It looks something like
this:
x<-data.frame(Year=c(2001,2001,2001,2001,2001,2001,2002,2002,2002,2002,2002,2002),
Month=c(1,1,1,2,2,2),Q=c(5,5,5,6,6,6,3,3,3,4,4,5))
y<-data.frame(Year=c(2001,2001,2002,2002),Month=c(1,2,1,2),Threshold_Q=c(5,5,4,4))
What I'd
2011 Jul 25
3
Finding/identifying a value within a factor
Hi all,
I'm trying to identify a particular digit or value within a vector of
factors. Specifically, this is environmental data where in some cases the
minimum value reported is "<" a particular number (and I want to manipulate
only these). For example:
x<-c("1","2","3","4","<1")
For a dataset that is hundreds or
2011 May 03
2
Controlling the extent of ablines on plot
Hi all,
I'm attempting to make a quite-specific plot where the axes cross at the
origin and with gridlines for guidance. I've been using ablines to create
the reference lines because I want a lot of control as to where they are
placed on the axis. This command works very well for such control.
However...
These ablines don't seem to work when I specify the origin as 0,0. They go
2011 Jan 25
5
Counting number of rows with two criteria in dataframe
Hi R-users,
I'm trying to find an elegant way to count the number of rows in a dataframe
with a unique combination of 2 values in the dataframe. My data is
specifically one column with a year, one with a month, and one with a day.
I'm trying to count the number of days in each year/month combination. But
for simplicity's sake, the following dataset will do:
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.?
2008 Jan 11
2
How to calculate the mean of all values in a list or dataframe
Hello all,
I've scoured the archives and google and I can't figure out how to
amalgamate a set of vectors of differing lengths in such a way as I can
calculate the mean easily.
The following dummy example contains vectors of length 1, but my data
has vectors of various lengths.
R> test = list(); for(i in 1:5) {test = append(test, i)}
R> test
[[1]]
[1] 1
[[2]]
[1] 2
[[3]]
[1] 3
2010 May 14
2
Deleting rows with NA from isolated column in matrix
Hi all,
I'm relatively new to R and have a data management problem. I am importing a
data matrix with some columns that have missing values. I am trying to
figure out how to delete rows with NA for data FOR JUST ONE SPECIFIED
column. For instance, with the example matrix:
x<-matrix(nrow=5,ncol=3)
x[,]<-1
x[5,1]<-NA
x[3,3]<-NA
how do I tell R to delete any rows with an NA value
2012 Sep 14
1
Boxplot lattice vs standard graphics
Given my reproducible example
test<-structure(list(site = structure(c(1L, 1L, 1L, 1L, 1L, 1L, 2L,
2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 3L,
3L, 3L, 3L, 3L, 3L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L,
4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 5L), .Label = c("A",
"B", "C", "D", "E"), class =
2013 May 11
3
boxplot with grouped variables
my dataset looked like this in the beginning:
>Daten
V1 V2 V3
1 Dosis Gewicht Geschlecht
2 0 6.62 m
3 0 6.65 m
4 0 5.78 m
5 0 5.63 m
I need box plots for V2 with all combination of V1 and V3, so I deleted the
first row, and tried this:
boxplot(Daten$V2[Daten$V3=="m"])
but it does not work and I
2011 Jul 26
5
Help with boxplot
Hi guys,
I need your help with the boxplot.
I've to create a boxplot starting from a table (.csv) in which there are the
result of a test.
Each column is a question and the rows are the answer of the respondents
(from 0 to 5).
Some answer is missing and has been filled with NA.
the table has been loaded in R with the function read.csv
I created the boxplot with the function boxplot and all
2011 Dec 09
1
Fixed! Thanks all:RE: scatterplot to boxplot translation?
Thanks to David and Jorge - both of your helpful suggestions got me to the desired endpoint. In case anyone else has this question: I boxplotted my y variable data, but did the "cut" operation on the x variable in order to conserve the order of the y data. I see another suggestion coming in from another user that basically says this.
So, my working line of code was:
boxplot(count$RPKM
2008 Aug 21
3
Boxplot 5% and 95% quantile instead of 25% and 75%
Hi,
I'm new to the whole R-thing as a replacement for Matlab, not disappointed sofar ;)
I found out how to make nice looking boxplots, but i also would like the make a boxplot with 5% and 95% instead of the standard 25 and 75% quantiles.
My csv input looks something like:
LOCATION FILTER NR DATE VALUE MONTH
Peelhorst01 1 14-Jan-94 23.07 1
Peelhorst01 1 28-Jan-94 23.68 1
Peelhorst01 1
2006 Jan 18
1
phyper returns 1 if x==k (PR#8499)
Full_Name: Utz J. Pape
Version: 2.2.0
OS: linux
Submission from: (NULL) (141.14.23.12)
If I use phyper and set parameter x equal to k (meaning that all balls I draw
are white) phyper returns 1 which is not (always) correct:
pape at xxx:~> R2.2.0 --vanilla
R : Copyright 2005, The R Foundation for Statistical Computing
Version 2.2.0 (2005-10-06 r35749)
ISBN 3-900051-07-0
R is free software
2006 Mar 16
2
french secondary boxplot
bonjour,
i'm a mathematic teacher and i have a question for R-developers :
is it possible to have (in the future) a boxplot with whiskers from
the first decile to the ninth decile, as usual in secondary french
schools... by example : boxplot(serie,range=-1) for french boxplot ?
cordialement,
jean-pierre
lyc?e jean zay
orl?ans, france
http://mathazay.free.fr/spip/
2017 Sep 28
3
Boxplot, formula interface, and labels.
I have data I'd like to plot using the formula interface to boxplot.
I call boxplot like so:
with(mydata, boxplot(count ~ geno * tissue))
I get a boxplot with x axis labels like "wt.kidney". I would like
to change the '.' to a newline. Where is this separator configured?
Thanks,
-Ed
2006 Apr 28
2
How to get a grid behind a boxplot
I am using R 2.2.1 on a Windows 2000 PC.
When I do a grid() after the boxplot
it overprints the boxplot:
> boxplot(count ~ spray, data = InsectSprays, col = "lightgray")
> grid(nx=NA, ny=NULL)
>
if I try the panel.first
> boxplot(count ~ spray, data = InsectSprays, col = "lightgray",
+ panel.first=grid(nx=NA, ny=NULL))
>
I can see the grid flash
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
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
2005 Feb 02
3
Boxplot by factors
Dear all,
I have the following data format
cellnumber force
1 100
1 230
1 100
1 200
1 130
1 210
2 179
2 298
2 400
2 500
2 600
...........
I want to make a boxplot of the force according to the cellnumber. Here
the cellnumber is actually a factor. It has 1, 2 two levels. How can I
do that using boxplot?
Thanks in advance
Ming