Displaying 20 results from an estimated 8000 matches similar to: "boxplot on all the columns"
2010 Jul 23
3
Filtering in R
The dataframe is
id salary
100 500
101 600
102 700
103 800
how can i generate a subsets if salary>600?
--
View this message in context: http://r.789695.n4.nabble.com/Filtering-in-R-tp2299603p2299603.html
Sent from the R help mailing list archive at Nabble.com.
2010 Jul 06
3
how to define a function in R
1. how to write a R script?
2.How to write a SAS like macro/generic process to process multiple files by
using the same funstion in R?
Thanks in advance
--
View this message in context: http://r.789695.n4.nabble.com/how-to-define-a-function-in-R-tp2280290p2280290.html
Sent from the R help mailing list archive at Nabble.com.
2010 Jul 12
2
cbind in for loops
I have 30 files in the current directories, i would like to perform the
cbind(fil1,file2,file3,file4....file30)
how could i do this in a for loop:
such as:
file2 <- list.files(pattern=".out3$")
for (j in file2) {
cbind(j).......how to implement cbind here
}
Thanks.
--
View this message in context:
2010 Jul 19
3
invalid type error
>myDF =
data.frame(id=c("A10","A20"),d1=c(.3,.3),d2=c(.4,.4),d3=c(-.2,.5),d4=c(-.3,.6),d5=c(.5,-.2),d6=c(.6,-.4),d7=c(-.9,-.5),d8=c(-.8,-.6))
>doit=function(x)c(x[1],sum_LK_positive=sum(x[-1][x[-1]>0]),sum_LK_negative=sum(x[-1][x[-1]<0]))
> myDF
id d1 d2 d3 d4 d5 d6 d7 d8
1 A10 0.3 0.4 -0.2 -0.3 0.5 0.6 -0.9 -0.8
2 A20 0.3 0.4 0.5 0.6 -0.2
2011 Jan 26
1
boxplot - code for labeling outliers - any suggestions for improvements?
Hello all,
I wrote a small function to add labels for outliers in a boxplot.
This function will only work on a simple boxplot/formula command (e.g:
something like boxplot(y~x)).
Code + example follows in this e-mail.
I'd be happy for any suggestions on how to improve this code, for example:
- Handle boxplot.matrix (which shouldn't be too hard to do)
- Handle cases of complex
2010 Jun 24
2
boxplot width
Hi everyone,
I made this set of boxplots that would show me the widths of some sites
broken up by some chromosome, but I don't know how to make it indicate the
number of data points that created the boxplot.
How do I do that?
boxplot(data$site~data$chr,varwidth='TRUE')
--
View this message in context: http://r.789695.n4.nabble.com/boxplot-width-tp2266805p2266805.html
Sent from the
2011 Jan 28
1
Boxplot
Hi,
I have 25 normal and 25 tumor samples and generated 50 boxplots one for
each
Is there a possibility to alternate the colors for the boxplots
Green Red Green Red.
Example:
A B C D
10 23 23 34
20 24 24 30
20 2434 34
this would generate 4 boxplot one for each. I want the boxplot for A in
Green while B in Red and alternated all the way till the end
Data I am working on.
a =
2010 Jul 22
5
choosing a random sample by precentage
hi all
i have found the follwoing way to choose a random sample by sample size (200):
ten_per_T2000 <- F_T2000_All[sample(nrow(F_T2000_All), 200), ]
but i wondered if there is a way to choose a sample size by
precentage (10% etc..)
thx
ethan
2010 Jul 22
2
p-VALUE calculation
Here is my dataframe with 1000 rows:
employee_id weigth p-value
100 150
101 200
102 300
103 180
.....
My question:
how can I calculate the p-value in R for each employee? the
distribution of the weigth will be established from the above 1000 samples.
--
View this message in context:
2010 Jul 07
3
how to process this in R
Here are what i am going to accomplish:
I have 400 files named as xxx.txt. the content of the file looks like the
following:
name count
1. aaa 100
2. bbb 2000
3. ccc 300
4. ddd 3000
........
more that 1000 rows in each files.
these are the areas i need help:
1. how can i only read in the files with the string patterns ggg or fff as
part of the file names?
for
2010 Jul 27
4
re-sampling of large sacle data
myDF:
d1 d2 d3 d4 d5
-0.166910351 0.022304377 -0.00825924 0.008330689 -0.000925938
-0.166910351 0.022304377 -0.00825924 0.008330689 -0.000925938
-0.166910351 0.022304377 -0.00825924 0.008330689 -0.168225938
-0.166910351 0.022304377 -0.00825924 0.008330689 -0.168225938
-0.166910351 0.022304377 -0.00825924 0.008330689 -0.168225938
-0.166910351
2010 Jul 23
1
MISSING VALUE IN R
I have a DF
ID VALUE
100 120
101 100
102 100
103
104
105
....
when i calculate the sum of the values, it returned NA. should I populate
the blank value as 0?
Thanks,
--
View this message in context: http://r.789695.n4.nabble.com/MISSING-VALUE-IN-R-tp2299586p2299586.html
Sent from the R help mailing list archive at Nabble.com.
2010 Jul 23
1
na.rm=TRUE
POS=sum(x[-1][x[-1]>0],na.rm=TRUE)
is this the correct syntax?
--
View this message in context: http://r.789695.n4.nabble.com/na-rm-TRUE-tp2299596p2299596.html
Sent from the R help mailing list archive at Nabble.com.
2009 Apr 21
3
ggplot2 - boxplot of variables / columns
Hi,
ggplot/qplot is great - it has really helped me do some nice things.
However, simple boxplot of different columns/variables is a bit
tricky, because of (i think) qplot's generic Y conditional on X input
form. Se below.
# Some data:
a <- rnorm(100)
b <- rnorm(100,1,2)
c <- rnorm(100,2,0.5)
# normal boxplot of a,b,c
boxplot(a,b,c) # Looks good
library(ggplot2) # loads qqplot2
#
2010 Jul 28
1
error: arguments imply differing number
mydata <- read.table(textConnection("
Id cat1 location item_values p-values sequence
a111 1 3002737 100 0.01 1
a112 1 3017821 102 0.05 2
a113 2 3027730 103 0.02 3
a114 2 3036220 104 0.04 4
a115 1 3053984 105 0.03 5
a118 1 3090500 106 0.02 8
a119 1 3103304
2007 May 06
1
error using boxplot.stats (but boxplot works¿?)
Hi
The answer to this may be obvious, but it's got me floored.
I'm unable to get boxplot.stats to work for me!
My session looks something like this:
> ia=read.table('/tmp/prueba.csv', header=TRUE, sep=",")
> attach(ia)
> boxplot.stats(X8weeks~Orden)
Error in sort (na.last, decreasing, ...) :
argument 1 is not a vector
In addition: Warning
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
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/
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
2012 Jan 27
2
help with Box plot
Dear researchers
I wish to plot a box plot without the mean line (the black line) and the i
wish a full line for the standard deviation
This is an example
mytest <- c(2.1,2.6,2.7,3.2,4.1,4.3,5.2,5.1,4.8,1.8,1.4,2.5,2.7,3.1,2.6,2.8)
boxplot(mytest)
really thanks
Gianni
[[alternative HTML version deleted]]