You are here:
Vanderbilt Biostatistics Wiki
>
Main Web
>
Seminars
>
RClinic
>
RGraphicsDotplot
(27 Oct 2008,
WillGray
)
(raw view)
E
dit
A
ttach
---+ Making Dot Charts in R Rachel Hayes <rachel.m.hayes@Vanderbilt.Edu> brought a problem to R Clinic on 23Oct08. The =Hmisc Dotplot= function can produce multi-panel dot charts with error bars while the =Hmisc dotchart2= function is useful for showing auxiliary data (e.g., sample sizes) in the right margin. <highlight> library(Hmisc) Load(hayes) a <- apr pa <- factor(ifelse(a$peds==0, 'Adult', 'Pediatric')) dept <- factor(sample(letters[1:30], nrow(a), replace=TRUE)) rdept <- with(a, reorder(dept, oe_dead, mean)) Dotplot(rdept ~ oe_dead | pa, data=a) with(a, dotchart2(oe_dead, auxdata=total_obs, auxtitle='N')) ## add another variable with different symbol .... add=TRUE, pch=2, ... ## See also ~/doc/teaching/hes/statcomp/Notes/graphscourse.pdf ## ~/doc/Talks/ACDRS/analysis.r in Frank's files </highlight>
E
dit
|
A
ttach
|
P
rint version
|
H
istory
: r2
<
r1
|
B
acklinks
|
V
iew topic
|
Edit
w
iki text
|
M
ore topic actions
Topic revision: r2 - 27 Oct 2008,
WillGray
Main
Department Home Page
Biostatistics Graduate Program
Vanderbilt University Medical Center
Main Web
Main Web Home
Search
Recent Changes
Changes
Topic list
Biostatistics Webs
Archive
Main
Sandbox
System
Register
|
Log In
Copyright © 2013-2022 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Vanderbilt Biostatistics Wiki?
Send feedback