Displaying 6 results from an estimated 6 matches for "myboxplot".
Did you mean:
boxplot
2012 Jan 29
1
Modifying whiskers in boxplots?
Hello,
I know this has been covered on here before, but as a complete novice, I
need a little more guidance. I would like to produce boxplots with the
whiskers extending to the 10 and 90th percentiles. I found this code:
myboxplot.stats <- function (x, coef = NULL, do.conf = TRUE, do.out =
TRUE)
{
nna <- !is.na(x)
n <- sum(nna)
stats <- quantile(x, c(.1,.25,.5,.75,.9), na.rm = TRUE)
iqr <- diff(stats[c(2, 4)])
out <- x < stats[1] | x > stats[5]
conf <- if (do.conf)
stats[3] + c(-1....
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
2011 Apr 17
3
Box plot with 5th and 95th percentiles instead of 1.5 * IQR: problems implementing an existing solution...
...s
instead of at 1.5 * IQR. I have read the relevant documentation, and checked
existing mails on this topic. I found a small modification that should work
: https://stat.ethz.ch/pipermail/r-help/2001-November/016817.html and tried
to implement it.
Basically, it says to replace boxplot.stats with:
myboxplot.stats <- function (x, coef = NULL, do.conf = TRUE, do.out =
TRUE)
{
nna <- !is.na(x)
n <- sum(nna)
stats <- quantile(x, c(.05,.25,.5,.75,.95), na.rm = TRUE)
iqr <- diff(stats[c(2, 4)])
out <- x < stats[1] | x > stats[5]
conf <- if (do.conf)
stats[3] + c(-...
2016 Apr 07
1
identifying outliers
Thanks for writing this great piece of code.
x = rnorm(100)
boxplot(x) # you shouldn't see any outliers here although sometimes yow will
# lets add some outliers intentionally
x = c(21, 20, 25, x) # now 10, 15 and 20 are outliers
myboxplot <- boxplot(x) # now you should see your three outliers
myboxplot$out # it will print the values of the outliers
How does one amend this code to produce the outliers by a group?
All the best,
Thomas Subia
[[alternative HTML version deleted]]
1999 Jul 06
2
eval(), expression()
Dear R-Users!
My aim is to produce boxplots without the outliers included in the
plot. I started to write a function that looks something like:
myboxplot <-function(x,fa) {
bpdata <- boxplot(x~fa,plot=FALSE)
bpnames <- names(bpdata)
for (JJ in bpnames) {
command <- paste("bpdata$",JJ,"$out <- numeric(0)",sep="");
eval(command)
}
bxp(bpdata)
}
Obviously this does not work as I intended...
2011 Sep 26
2
Boxplot BUT with Mean, SD, Max & Min ?
People,
It appears that there is no way of getting Boxplots to plot using Mean,
SD, Max & Min - is there something else that would do what I want? I
couldn't find it . .
Thanks,
Phil.
--
Philip Rhoades
GPO Box 3411
Sydney NSW 2001
Australia
E-mail: phil at pricom.com.au