Displaying 20 results from an estimated 10000 matches similar to: "How to make a boxplot with exclusion of certain groups"
2010 Sep 01
3
how to represent error bar in a plot legend?
I have a simple barplot of 4 mean values, each mean value has an
associated 95% confidence interval drawn on the plot as an error bar.
I want to make a legend on the plot that uses the error bar symbol, and
explains "95% C.I."
How do I show the error bar symbol in the legend? I could not find any
"pch" values that are appropriate
Thanks
[[alternative HTML version
2007 Apr 06
5
Labelling boxplot with fivenumber summary
I am very new to R so forgive me if this seems basic but I have done extensive searching and failed to come up with the answer for myself.
I am trying to label a boxplot I have created with the values for the median, upper and lower quartiles and max and min values. I have been unable to do this or find anything on the net to say how it might be done. Is this possible and if so how? Regards,
2010 Aug 07
4
basic question about t-test with adjusted p value
I have read the R manual and help archives, sorry but I'm still stuck.
How would I do a t-test with an adjusted p-value?
Suppose that I use t.test ( ) , with the function argument alternative =
"two.sided", and data such that degrees of freedom = 20. The function
calculates a t-statistic of 2.086, and p-value =0.05
How do I then adjust the p-value? My thought is to do
2008 Jan 25
1
accessing the indices of outliers in a data frame boxplot
I have a data frame containing columns which are factors. I use this
to make boxplots for the data, with one box per factor. I would now
like to get at the data in the data frame which corresponds to the
outliers. I have so far found the $out, which gives "the values of any
data points which lie beyond the extremes of the whiskers", but I
haven't found anything which will let me get
2006 May 05
2
boxplot - labelling
Hi,
How can I get the values of mean and median (not only points but values too) on the boxplot. I am using boxplot function from graphics package. Following is my data set
> df
[1] 5 1 1 0 0 10 38 47 2 5 0 28 5 8 81 21 12 9 1 12 2 4 22 3
> mean.val <- sapply(df,mean)
> boxplot(df,las = 1,col = "light blue")
> points(seq(df), mean.val,
2006 Nov 07
2
Boxplot
Hi,
I am new to R and am still trying to get a grip of it.
I have data in this format:
Run Lab Batch Y
1 1 1 1 608.781
2 2 1 2 569.670
3 3 1 1 689.556
4 4 1 2 747.541
5 5 1 1 618.134
6 6 1 2 612.182
7 7 1 1 680.203
8 8 1 2 607.766
9 9 1 1 726.232
and I want to make a boxplot of the Y values for each
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
2008 Jan 30
4
boxplot and number of observations per box
Dear all,
How can I plot the number of observations per box in a boxplot. Many thanks,
Bernard
---------------------------------
[[alternative HTML version deleted]]
2001 Apr 19
1
boxplot()
Dear all,
I am comparing:
> summary(boxplot(c(1,2,3,4,5,6,7,8,50),range=1.5))
Length Class Mode
stats 5 -none- numeric
n 1 -none- numeric
conf 2 -none- numeric
out 1 -none- numeric
^^^^^
group 1 -none- numeric
names 1 -none- character
with:
> summary(boxplot(c(1,2,3,4,5,6,7,8,50),range=0))
Length Class Mode
stats 5 -none- numeric
n
2008 Feb 27
1
Label outliers in boxplot
Sorry if this is a stupid question, I'm a beginner and I didn't find help in manuals, archives, or web
I have a z matrix of this type:
a b c d
786-30.s2.gpr 0.2186214 1.3374486 89.37757 9.066358786-31.s1.gpr 1.0931070 1.3245885 81.37860 16.203704786-31.s2.gpr 0.5529835 1.3374486 86.43261 11.676955786-32.s1.gpr 0.6815844
2009 Aug 20
2
boxplot with log="y" and values starting at 0
Hi,
I'm working with a data.frame containing values between 0 and 22000.
Most of the values are actually between 0 and 50 and the high ones are
outliers.
I want to generate a boxplot and since the outliers are extremely
high, I need to scale the y scale logarithmically. Otherwise one
wouldn't really see the boxes of the boxplot.
boxplot(dat, log="y", ylim=c(0,
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 =
2012 Jul 25
4
Boxplot graphic
Dear R-users!
I boxplotted some data. the class of the data is numeric. There are some
outliers and I would like to see their names in the graphic. So, instead
that the data points of the outliers are plotted as points, I would like to
have their names plotted.
First of, how can I give my data series (class numeric) names? Second, how
could I adjust the boxplot to see the names of the outliers
2009 Jul 30
2
how to change the thickness of the lines of the boxplot outliers
Hi,
I tried to use boxplot function. I am following the ?boxplot and can
change the whisker box width using lwd parameter. However, when
outline=TRUE, the thickness of the circle of the outliers is not
proportionally changed when I change the line width of the whisker
box. There must be another parameter for that. Unfortunately I don't
know.
please help and thanks much in advance.
--
2006 Aug 18
1
Boxplot Help
Hello R-users and developers,
Once again, I'm asking for your help.
I can identify outliers in boxplot with this instruction
result <- boxplot( Income ~ Sex, col = "lightgray", data=dados)
if (length(result$out))
text(result$group, result$out, result$out, pos = 4, col = "red")
But I can not identify the outlier's id (variable names) in the boxplot.
2007 Jan 10
2
labels outliers in boxplot
Dear R-users,
Following is part of my data, where slide has 36
levels and block 48 levels. I have done boxplot for
each slide on the same graph. There are outliers for
each slide and I tried to use indentify functtion to
identify outliers in such a way that when I click on
an outlier or point, the points will be labelled by
either their block or ID or by both but without
success. How can I make
2009 Aug 19
2
mild and extreme outliers in boxplot
dear all,
could somebody tell me how I can plot mild outliers as a circle(?) and
extreme outliers as an asterisk(*) in a box-whisker plot?
Thanks very much in advance
--
View this message in context: http://www.nabble.com/mild-and-extreme-outliers-in-boxplot-tp25040545p25040545.html
Sent from the R help mailing list archive at Nabble.com.
2007 Mar 27
2
line style outliers in boxplot
Dear Users
Is there any way to generate lines instead of points for outliers in the boxplot
function?
Thanks
AA.
[[alternative HTML version deleted]]
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 =
2010 Sep 29
2
boxplot
Hello, does somebody know in a boxplot, what does each element in the
boxplot represent?
1. lines at the extremes of the dotted lines?
2. Extremes of the boxes
3. Black line in the middle of the box?
4. notches?
Thank you
Felipe Parra
[[alternative HTML version deleted]]