File:R-US state areas-boxplot.svg
From Wikimedia Commons, the free media repository
Jump to navigation
Jump to search
Size of this PNG preview of this SVG file: 450 × 135 pixels. Other resolutions: 320 × 96 pixels | 640 × 192 pixels | 1,024 × 307 pixels | 1,280 × 384 pixels | 2,560 × 768 pixels.
Original file (SVG file, nominally 450 × 135 pixels, file size: 78 KB)
File information
Structured data
Captions
DescriptionR-US state areas-boxplot.svg |
English: Boxplot example (with notches) for continuous data, with outliers labelled by name. Data = US state areas |
|||
Date | ||||
Source | Own work | |||
Author | HYanWong | |||
Permission (Reusing this file) |
|
|||
SVG development InfoField | ||||
Source code InfoField | R codesvg(file = "R-US_state_areas-boxplot.svg", width = 5, height = 1.5, pointsize = 8)
#Boxplot example (with notches) for continuous data, with outliers labelled by name. Data = US state areas
par(mar=c(4,1,3,1)+0.1)
X <- state.area*2.58998811/1000
bp <- boxplot(X, notch=TRUE, horizontal=TRUE,
xlab=expression(paste(italic("landArea")," (thousands of square km)")), xaxt="n")
axis(1,seq(0, 2e3, 100), cex.axis=0.8, las=2)
#label outliers
outliers <- order(match(X, sort(bp$out)), na.last=NA)
odd <- c(TRUE, FALSE)
text(X[outliers[!odd]], 1, labels=state.name[outliers[!odd]], adj=-0.2, cex=0.65, srt=45, xpd=NA, col="grey40")
text(X[outliers[odd]], 1, labels=state.name[outliers[odd]], adj=1.2, cex=0.65, srt=45, xpd=NA, col="grey40")
title("Size of US states")
dev.off()
|
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 22:43, 6 March 2009 | 450 × 135 (78 KB) | HYanWong (talk | contribs) | Make horizontal, to match | |
22:44, 2 February 2009 | 135 × 450 (83 KB) | HYanWong (talk | contribs) | {{Information |Description={{en|1=Example R plot: boxplot (with notches) of US state areas, outliers labelled}} |Source=Own work by uploader |Author=HYanWong |Date=2009-02-02 |Permission= |other_versions= }} {{Created with R}} using the |
You cannot overwrite this file.
File usage on Commons
There are no pages that use this file.
File usage on other wikis
The following other wikis use this file:
- Usage on de.wikipedia.org
- Usage on en.wikibooks.org