similar to: boxplot question

Displaying 20 results from an estimated 2000 matches similar to: "boxplot question"

2012 Sep 29
3
Removing lower whisker in boxplot to see the effects of the high values
Good Afternoon- I was wanting to alter the boxplot to remove the lower whisker, both the whisker line and staple just on the lower end. Is there a way to do this? As my code is currently: boxplot(log_loads~ind,data=nfmaum, horizontal=TRUE, notch=T, outline=FALSE, whisker=0, main="Maumee River Near Future Climate Scenarios", ylab="Log Load",xlab="Climate Scenarios")
2008 May 23
2
Boxplot width
Hi there, assume that you have data with different sampling like d1 <- rnorm(100) d2 <- rnorm(150) now, I'd like to create two boxplots in one graph but each plot located at the sampling number at the x-axis. This, I can do with "at" l <- list(d1,d2) boxplot(l, at=c(length(d1), length(d2)), xlim=c(0,200) ) but both plots are very thin and I'd like to increase the
2008 Dec 02
3
boxplot via plot command
Hi folks, I've just discovered that the following code leads to boxplot (surprisingly to me). Can anybody explain to me why? Is this documented somewhere? I've never consider this option before. x <- rnorm(300) l <- c(rep("label1",100), rep("label2",50), rep("label3",150)) df <- data.frame(as.factor(l), x) plot(df) Thank you! Antje
2010 Sep 06
5
boxplot knowing Q1, Q3, median, upper and lower whisker value
Dear list, I am using a external program that outputs Q1, Q3, median, upper and lower whisker values for various datasets simultaneously in a tab delimited format. After importing this text file into R, I would like to plot a boxplot using these given values and not the original series of data points, i.e. not using something like boxplot(mydata). Is there an easy way for doing this? If I am not
2003 May 11
2
what does boxplot draw?
Dear r-help, Unfortunately I cannot find in the documentation what determines ranges of a 'box' in the box-and-whisker plot. It is said in "Simple R" (http://www.math.csi.cuny.edu/Statistics/R/simpleR) that they are 1st and 3rd Qus usually. I tried to add to boxplot lines with (quantile(x,probs=0.25)), but lines do not coincide with edges of boxes.
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. --
2005 Jul 10
2
Boxplot in R
I am trying to draw a plot like Matlab does: The upper extreme whisker represents 95% of the data; The upper hinge represents 75% of the data; The median represents 50% of the data; The lower hinge represents 25% of the data; The lower extreme whisker represents 5% of the data. It looks like: --- 95% | | ------- 75% | | |-----| 50% | | | | -------
2008 Sep 18
1
outlier and whisker in boxplot
Hi, Dear R-users: Sorry for bothering your guys again. I think I should rewrite my question. I know how to extend whisker by using range. The question is that I will set the range=1.5, and at the same time, I only want to show the extreme outlier, like 0.01% and 99.99% percentile, so what should I do? Thank you very much! Catherine -- View this message in context:
2008 Sep 18
1
about the whisker in boxplot
Hi, Dear R-users, I have a problem when I drawing a boxplot. I want to extend the whisker to the 5% and the 95% quantiles and only show the most extreme outlier, like 0.01% and 99.99% percentiles. What should I do? I saw something on boxplot.stat, but even I define the parameter in boxplot.stat, what I should do next? how to connect it to boxplot? Thank you very much! Catherine -- View
2011 Feb 24
1
Boxplot not doing what I think it should
My box plot below is drawing its upper whisker all the way to the last point, instead of showing the point as an outlier. Am I misunderstanding, or is it a bug? Help(boxplot) states for the parameter ?range? that ?this determines how far the plot whiskers extend out from the box. If range is positive, the whiskers extend to the most extreme data point which is no more than range times the
2009 Apr 29
1
boxplot - margin settings
Hi there, I'm trying to solve a boxplot problem (should be simple, but I cannot find the solution...): data <- list( "long_name1_xxxxxxxxxxx" = rnorm(100), "long_name2_yyyyyyyyyyyyyy" = rnorm(200)) boxplot(data , las = 2, mar = c(20,4,4,4)) Why does the margin not change whatever I put there??? With other plots it worked for me, why not in this case? I just want to
2007 Aug 30
1
boxplot will remember the factor levels
R-help, I'm trying to do a simple box-and-whisker plot to some data. The data are a subset of a large data frame but when running the "boxplot" function on the subset data all the factors are still present in the graph leaving a huge empty space until the actuals factors are shown. This produces a spurious box-and-whisker plot. If the subset data are exported to another R session
2006 Jan 09
3
two y-axis in xy-plot
Hi there, I am wondering if it is possible to do an xyplot with two y-axes. I'd like to print two parameters in a time series but they both have different scales. Which parameter in xyplot can I add to achieve this result? Thanks a lot for any help. Antje [[alternative HTML version deleted]]
2008 Dec 16
6
Find all numbers in a certain interval
Hi all, I'd like to know, if I can solve this with a shorter command: a <- rnorm(100) which(a > -0.5 & a < 0.5) # would give me all indices of numbers greater than -0.5 and smaller than +0.5 I have something similar with a dataframe and it produces sometimes quite long commands... I'd like to have something like: which(within.interval(a, -0.5, 0.5)) Is there anything I
2011 Feb 11
2
fitdistr question
Hello, I tried to fit a poisson distribution but looking at the function fitdistr() it does not optimize lambda but simply estimates the mean of the data and returns it as lambda. I'm a bit confused because I was expecting an optimization of this parameter to gain a good fit... If I would use mle() of stats4 package or mle2() of bbmle package, I would have to write the function by myself
2006 Nov 01
4
extract values from a vector
Hello, I'm looking for a solution for the following problem: I have two vectors V1 <- c("apple","honey","milk","bread","butter") V2 <- c("bread","milk") now, I would like to know for each element in V1 if it's equal to one of the elements in V2 I could do: which(V1 == V2[1] | V1 == V2[2]) but what if I
2009 Jan 20
5
from matrix to data.frame
Hello, I have a question how to reshape a given matrix to a data frame. # ---------------------------------- > a <- matrix(1:25, nrow=5) > a [,1] [,2] [,3] [,4] [,5] [1,] 1 6 11 16 21 [2,] 2 7 12 17 22 [3,] 3 8 13 18 23 [4,] 4 9 14 19 24 [5,] 5 10 15 20 25 > colnames(a) <- LETTERS[1:5] > rownames(a) <-
2009 Sep 28
2
Levelplot without margins
Hello, I'm not very experienced with lattice and I was wondering whether I get get some hints from you how to create a pure heatmap (using levelplot), without any axis, title, legend, margin at all... I just want to see the coloured squares, nothing else. Any suggestions? Antje
2006 Jun 06
2
error bars in lattice xyplot *with groups*
Hi all, I'm trying to plot error bars in a lattice plot generated with xyplot. Deepayan Sarkar has provided a very useful solution for simple circumstances (https://stat.ethz.ch/pipermail/r-help/2005-October/081571.html), yet I am having trouble getting it to work when the "groups" setting is enabled in xyplot (i.e. multiple lines). To illustrate this, consider the singer data
2008 Dec 05
6
levels update
Hello, I hope this question is not too stupid. I would like to know how to update levels after subsetting data from a data.frame. df <- data.frame(factor(c("a","a","c","b","b")), c(4,5,6,7,8), c(9,1,2,3,4)) names(df) <- c("X1","X2","X3") my.sub <- subset(df, X1 == "a" | X1 == "b")