similar to: boxplot with 2 treatments and 2 variables (with 2 corresponding y-axes)

Displaying 20 results from an estimated 20000 matches similar to: "boxplot with 2 treatments and 2 variables (with 2 corresponding y-axes)"

2009 Nov 26
1
{ggplot2} Adding Mean to (grouped) Boxplot.
Hi R Users, I am using following R code to plot a "grouped boxplot". I'm hoping if I can add MEAN to these boxplots. Data is copied below and attached as text file. install.packages("ggplot2") library(ggplot2) dta<-read.table("Sample.txt",header=T) attach(dta) p <- ggplot(dta, aes(factor(month), nail)) p + geom_boxplot(aes(fill = factor(trt))) Data: month
2008 Nov 28
1
side by side boxplots
Good Morning, I am trying to get side by side boxplots of two groups on the same variable. The last item under ?boxplot led me to some useful code. I use "boxwex" to make the boxes narrower, "at" to shift them over and "add" to draw them both on the same graph. Something along the lines of: attach(group1) boxplot(Y~X, col="blue", boxwex=.4,
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
2004 Jan 22
3
adding mean to boxplot
I am a new and unexperienced user of R and got so far as to know how to produce boxplots. I have no experience of messing with function code, so presently I do not know how to create a boxplot with group means instead of group medians. If somebody could help me either replace the median with the mean or superimpose the mean onto the existing boxplot, it would be appreciated.
2010 Feb 22
1
Boxplots with similar number of classes....
I have four boxplots, stacked on top of one another (vertically). There are five classes that the continuous variable is set against. The problem I have is the data for the second boxplot only contains values for four of the five classes. I would like to include the space in this graph so there is a continuity for all of the boxplots, in terms of number of classes. I would include a set of
2011 Feb 26
1
Boxplot for X Vs Y variable grouped by ID
Dear All, I am new to R. I amazed by this software. I have a question regarding boxplot. I have three columns say X, Y,ID (X is time from 0 to 12 hrs, Y is a variable dependent on X) I can plot a simple boxplot if it is just one group. But I have 10 groups and I want to plot all of them in one graphs. Something like multiple boxplots in one graph. I am not in R mailing list please reply to me
2012 Aug 15
4
boxplot help
Hi, im a newbie with very wobbly coding abilities. Tearing my hair out over getting the boxplot i want... I have a dataset called 'eagle' which consists of year (2011 or 2012), month (jan - dec), roof (TT6, TT13 or BARE) and temp (the continuous variable that i want to plot). So i want boxplots of the three roof treatments in every month organised in chronical order along x axis 2011 -
2008 Jun 09
0
Two y-axes boxplot
I am aware of the inherent risks of having plots with more than two axes, but I am trying to produce the graphs that I have been tasked with. That being said I am having a hard time figuring out how to have two axes onto a boxplot. below is the sample code. I would like BC on the plot produced with this code to be on a second axis with all of the others being on the first axis. This will be
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
2008 Jun 06
1
boxplot changes fontsize of labels
Hi all! So far I learned some R but finilizing my plots so they look publishable seems not to be possible. I set up some boxplots. Everything works well but when I put more then two of them in one plot the labels of the axes appear smaller than the normal font size. > x <- rnorm(30) > y <- rnorm(30) > par(mfrow=c(1,4)) > boxplot(x,y, names=c("horray",
2006 Jun 27
1
Boxplot questions.
Dear all, I am having a data for 2 different treatments with different time points. So, I used the following code to plot the boxplot and also to do anova. T11 <- c(280, 336, 249, 277, 429) T12 <- c(400, 397, 285, 407, 313) T13 <- c(725, 373, 364, 706, 249) T21 <- c(589, 257, 466, 248, 913) T22 <- c(519, 424, 512, 298, 907) T23 <- c(529, 479, 634, 354, 1015) obs <- c(T11,
2010 Nov 29
1
surpressing tickmarks / labels x-as for two sets of boxplot (plotted as stacked boxplots)
Hello, I am trying to plot two sets of boxplots together. These are estimates of two experiments and?seven?factors. The results of the two experiments I want to plot as boxplots stacked to each other. Therefore I plot first the results of the first experiment; and next with the add option the second set of boxplots. The boxplots are plotted at 'at = 1:7 - 0.15 for the first experiment and
2006 Mar 27
2
A plotting question - how to get error bars?
Dear R list, Can anyone help with a plotting question? I'm trying to display some data on a plot and I've almost got the format I need (see code below), but 2 things I can't get: 1. How to get "Jan","Feb","Mar" on the x=axis instead of 1:3? 2. How to get "T"s on the end of my error bars like you have in standard scientific plots? Any comments
2005 Jul 04
1
question about boxplot axis
Hi: I have a question making side by side boxplot. My response is numeric and I want to make a side by side boxplot of it accroding to a factor vector. So, there are several boxplots on the same plot. Each boxplot is with respect to one level for a factor. The levels of the factor are some characters. When I make the plot, the boxplots are arranged according to the alphabetic order of the
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
2003 Apr 23
1
Text on a boxplot graph
Hi all, Could anybody help me figure out how to write text on a boxplot. I have to plot 9 boxplots side by side on a single graph. On the x-axis I write numeric values with the 'names' argument but I'd like to add one label (character value) in the middle of each box. I know how to use the text() function for regular y~x plots but in this particular case, I'm kinda lost...
2001 Jul 27
2
boxplot question
I'm graphing a series of boxplots of grouped data inside a function that passes the data.frame, the names vector, and a title vector. Because both the data subset changes with each successive pass through the function, occasionally the names vector turns up with only one group to plot. This is an expected result. However, when the names argument in boxplot has only a single name, it
2013 Mar 21
2
Displaying median value over the horizontal(median)line in the boxplot
Hi, set.seed(45) test1<-data.frame(columnA=rnorm(7,45),columnB=rnorm(7,10)) #used an example probably similar to your actual data apply(test1,2,function(x) sprintf("%.1f",median(x))) #columnA columnB # "44.5"? "10.2" par(mfrow=c(1,2)) lapply(test1,function(x) {b<-
2007 Jan 08
1
Boxplot issue
Dear R-users, I have a data frame containing 2 colums: column 1 is the patient numbers (totally 36 patients), column 2 is patient's response values (each patient has 100 response values). If I produce a boxplot for each patient on the same graph in order to compare them against each other then the boxplots are very small. How can I instead of creating one graph containing 36 boxplots,