Return to Statistical Graphics Home

Please rate the graphic:

%VOTE{id="Evalgraph" stars1="Graph Rating" global="off" open="off" secret="off" format="| $key | $small
Score: $score, My vote: $mylast, Total votes: $sum |" }%

Please add comments and then click on the "Add comment" button.

%COMMENT%

OriginalStatGraphicsForm edit

Image %LIGHTBOX{ image="boxplotbasic.jpg" thumbnail="tn2_boxplotbasic.jpg" caption="Plot" }% Click on image to enlarge.
Title Boxplot of Two Treatment Groups
Graph_Subgroup General Principles
Code Added Yes
Description Boxplot summary of time to recovery from first day of onset of a cold.
Contributor/Email Mat Soukup (email: Mat.Soukup@fda.hhs.gov)
Background Hypothetical example used to compare the distribution of time to onset of a cold of two treatment groups. Objective is to determine if Active drug reduces duration of a cold.
Special Considerations
Date Original
Original Date 2007
Modified Date
Use/Suitability Exploration
Software Program R
Software R version 2.10
R-Code - Attachment Box Plot code attached
R-Code set.seed(123)
drug <- as.integer(rnorm(200, 2, 2))<br />drug[drug<0] <- 0<br />
placebo <- as.integer(rnorm(200, 4, 3))<br />placebo[placebo<0] <- 0<br />
duration <- c(drug, placebo)<br />trt <- factor(rep(c('Drug','Placebo'), each=200))<br />
ddrug <- density(drug)<br />dplac <- density(placebo)<br />
#png('C:/Research/Graphics/Graphs4Display/webpages/classes/pages/images/boxplotbasic.png',
# width=500, height=500)

boxplot(duration~trt, col=c('blue','grey60'), horizontal=TRUE,
main='horizontal=TRUE', varwidth=TRUE, notch=TRUE)
#dev.off()
SAS-Code - Attachment
SAS-Code
Stata-Code - Attachment
Stata-Code
Other Code - Attachment
Other Code
Keywords boxplot, treatment groups
OPTIONAL FIELDS
References Chambers, J. M., Cleveland, W. S., Kleiner, B. and Tukey, P. A. (1983) Graphical Methods for Data Analysis. Wadsworth & Brooks/Cole.
Datasets CDISC Datasets
Data
Attached Data
CATEGORIZATIONS
Classification-Evaluation General
Classification-Graph Type Boxplot
Graph_Type Boxplot
Variable Relationship Summary
Data Types Continuous
Special Cases
Disclaimer The views expressed within CTSpedia are those of the author and must not be taken to represent policy or guidance on the behalf of any organization or institution with which the author is affiliated.
Permission Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF ERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT OLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Reference Image boxplotbasic_200.jpg
This topic: CTSpedia > WebHome > StatGraphHome > ContributeGraphics > StatGraphTopic000
Topic revision: 03 Apr 2012, MaryBanach
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback