similar to: Boxplot width

Displaying 20 results from an estimated 20000 matches similar to: "Boxplot width"

2009 Nov 20
1
boxplot question
Hi there, I was wondering if anybody can explain to me why the boxplot ends up with different results in the following case: I have some integer data as a vector and I compare the stats of boxplot with the same data divided by a factor. I've attached a csv file with both data present (d1, d2). The factor is 34.16667. If I run the boxplot function on d1 I get the following stats:
2006 Aug 23
5
two density curves in one plot?
Hello, I was wondering if I can plot two curves I get from "density(data)" into one plot. I want to compare both. With the following commad, I just get one curve plotted: plot( density(mydata) ) Sorry for this stupid question but I could not find a solution until now... Antje
2005 Jun 28
2
boxplot by factor (Package base version 2.1.1) ( PR#7976)
The issue is not with boxplot, but with split. boxplot.formula() calls boxplot(split(split(mf[[response]], mf[-response]), ...), but look at what split() returns when there are empty levels in the factor: > f <- factor(gl(3, 6), levels=1:5) > y <- rnorm(f) > split(y, f) $"1" [1] 0.4832124 1.1924811 0.3657797 1.7400198 0.5577356 0.9889520 $"2" [1] -1.1296642
2012 Oct 03
1
can't see colors with "col" in boxplot()
Hi, I am trying to color the data points on my boxplot but I only get the default black. Not sure why. Any ideas? Thank you, Mark Here is my code. > dat.g100 <- dat.sg[100,] # selected gene (row) from a dataframe of 37 columns > d1 <- as.matrix(dat.g100[,1:18]) # subset 1 > d2 <- as.matrix(dat.g100[,19:37]) # subset 2 # boxplots > par(mfrow=c(2,1)) > boxplot(d1,
2008 Oct 06
3
horizontal boxplot + xlim
Hi there, I get a strange behaviour of a boxplot with the following code. There seems to be a problem with the xlim-parameter. Did I do anything wrong? What else can I do to force the boxplot to have a defined x-range? x <- rnorm(100) boxplot(x, notch=TRUE, xlab=parameter, xlim <- c(-4,4), horizontal = TRUE) Antje
2013 Apr 07
4
Same boxplot colors by panels in lattice (bwplot)
Dear all, I would like to have the same color for the all boxplots from the same panel, but my code below shows the two colors alternating. Thanks! set.seed(42) D1 <- rnorm(200) D2 <- factor(sample(letters[1:2],200,TRUE)) D3 <- factor(sample(letters[3:5],200,TRUE)) DF <- data.frame(x=D1,a=D2,b=D3) print(bwplot(b~x|a,data=DF,col=c("black","black"),
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
2009 Jun 04
1
'beside' option for boxplots
Is there any way to get a boxplot of several data sets beside one another on the same graph, as there is for barplot? If I do: d1 <- data.frame(a = c(rep(1:3, each = 3)), b = c(1:9)) d2 <- data.frame(a = c(rep(1:3, each = 3)), b = c(9:1)) boxplot(d1$b ~ d1$a) boxplot(d2$b ~ d2$a, add=T) It will show the two datasets on the one graph, but the middle point will overlap. What I want is
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
2008 Feb 15
2
Controling width of boxes in boxplots
Hi, I want to add boxplots to a scatterplot: plot(x,y, xlim=c(80,120),ylim=c(80,120)) boxplot(y,add=TRUE,at=118) boxplot(x,add=TRUE,at=118,horizontal=TRUE) How can I control the width of the boxes (say, I'd like them to be of width 3 in the variables' scales). I've tried the "width" parameter but failed. Thanks in advance, Marcin
2011 Nov 17
1
Small inconsistency with boxplot
Dear R-core team, I think I found a small inconsistency in the boxplot function. I don't want to post it as a bug since I'm not sure this might be considered as one according to the FAQ --- and this is not a major problem. Don't hesitate to tell me if I'm wrong. If you try to do a boxplot on a matrix and set the "at" argument to some vector different from 1:n, n is the
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
2008 Sep 12
2
Again, about boxplot
Thank you for your guys reply for my previous question. But I got one more question about the boxplot. With the code in the R-help: boxplot(len ~ dose, data = ToothGrowth, boxwex = 0.25, at = 1:3 - 0.2, subset = supp == "VC", col = "yellow", main = "Guinea Pigs' Tooth Growth", xlab = "Vitamin C dose mg", ylab =
2001 Apr 29
1
Using R for processing computer performance data
I'm relatively new to R, and have looked through the documentation and FAQ, and have not been able to find out how I can accomplish something. If someone can point me in the right direction, I would greatly appreciate it. I am doing system performance tests, and end up with large volumes of data that consists of transaction timings, coupled with system timings. The analysis process is
2007 Oct 15
4
boxplot() confuses x- and y-axes (PR#10345)
Full_Name: Bob O'Hara Version: 2.6.0 OS: Windows XP Submission from: (NULL) (88.112.20.250) Using horizontal=TRUE with boxplot() confuses it as to what is an x- or y-axis. At least, xlim= and ylim= are the wrong way round, log="x" (or "y") and xaxt= work as expected, I haven't looked at anything else. Some code to see if you can reproduce the bug (or discover
2006 Apr 02
2
Boxplot
bonjour, je voudrais savoir s'il serait possible de sugg?rer aux d?veloppeurs de R de proposer une option suppl?mentaire pour les moustaches, ? savoir les placer sur d1 et d9 comme c'est pr?conis? dans les programmes du secondaire en France, option du style boxplot (serie,range=91) par exemple... i would like to know if it is possible to have (with the agrement of developpers)
2005 Sep 28
1
boxplot and xlim confusion?
I have some code as shown below. Basically, I would like three boxplots to be set next to each other with no ylabels on the two "inner" plots, and I want the same x axis range on all three. However, it seems like boxplot does not respect the xlim setting. I've tried the various ways I thought would work (par, boxplot(...xlim=)) but none of them seem to work. I then tried plot.window,
2000 Nov 21
3
boxplot grouped by two variables.
Is there a quick way to make boxplots groups by two variables? By that I mean, that if x axes have values ("A","B","C"), than at each value there would be a few boxplots each for a value of second variable (say ("1","2","3")). Thank You. -- Vadim Kutsyy http://www.kutsyy.com vadim at kutsyy.com The University of
2000 Nov 21
3
boxplot grouped by two variables.
Is there a quick way to make boxplots groups by two variables? By that I mean, that if x axes have values ("A","B","C"), than at each value there would be a few boxplots each for a value of second variable (say ("1","2","3")). Thank You. -- Vadim Kutsyy http://www.kutsyy.com vadim at kutsyy.com The University of
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 =