File:R-US state areas-boxplot log+extras.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: 96 KB)
File information
Structured data
Captions
DescriptionR-US state areas-boxplot log+extras.svg |
English: Horizontal boxplot example with logged (base 10) continuous data, outliers identified by name and both log & linear axes plotted. 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_log+extras.svg", width = 5, height = 1.5, pointsize = 8)
#Horizontal boxplot example with logged (base 10) continuous data, outliers identified by name and both log & linear axes plotted. Data = US state areas
par(mar=c(3,4,4,1)+0.1)
X <- log10(state.area*2.58998811)
bp <- boxplot(X, horizontal=TRUE, xaxt="n", xlab="")
axis(1, 4:6, mgp=c(1.5,0.5,0))
axis(3,log10(1:9*rep(10^(3:7), each=9)), rep("", 45))
axis(3,log10(10^(3:6)), expression(10^3, 10^4, 10^5, 10^6), cex.axis=0.8, mgp=c(2.5,1,0))
mtext(expression((italic("LandArea"))), 3, line=0.8, adj=-0.05, cex=0.8)
abline(v=log10(seq(0, 2e6, 100000)), lty="dotted", col="lightgray")
title(main="Size of US states", line=2.5)
title(xlab=expression(log10(italic("LandArea"))), mgp=c(2,0.5,0))
###Label outliers
outliers <- order(match(X, sort(boxplot.stats(X)$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")
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:54, 6 March 2009 | 450 × 135 (96 KB) | HYanWong (talk | contribs) | {{Information |Description={{en|1=Horizontal boxplot example with logged (base 10) continuous data, outliers identified by name and both log & linear axes plotted. Data {{=}} US state areas}} |Source=Own work by uploader |Author=[[User:HYanWong|HYanWong] |
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 en.wikibooks.org