File:R-US state areas-1D sqrt+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-1D sqrt+extras.svg |
English: 1D horizontal scatter plot (aka "dot plot" or "strip plot") example with continuous data, square root axis and outliers identified by name. |
Date | |
Source | Own work |
Author | HYanWong |
using the following commands
svg(file = "R-US_state_areas-1D_sqrt+extras.svg", width = 5, height = 1.5, pointsize = 8) #1D horizontal scatter plot (aka "dot plot" or "strip plot") example with continuous data, square root axis and outliers identified by name. par(mar=c(3,4,4,1)+0.1) X <- sqrt(state.area*2.58998811) stripchart(X, pch=1, xlim=c(0, max(X)), xaxt="n", xlab=expression(paste(italic("landArea")," (thousands of square km)")), mgp=c(2,0.5,0)) axis(1,sqrt(10^5*0:20),10^2*0:20, cex.axis=0.8, mgp=c(2.5,0.7,0), las=3) abline(v=sqrt(10^5*0:20), lty="dotted", col="lightgray") title(main="Size of US states", line=2.5) ###Add 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=35, xpd=NA, col="grey40") text(X[outliers[!odd]], 1, labels=state.name[outliers[!odd]], adj=1.2, cex=0.65, srt=35, xpd=NA, col="grey40") dev.off()
Public domainPublic domainfalsefalse |
I, the copyright holder of this work, release this work into the public domain. This applies worldwide. In some countries this may not be legally possible; if so: I grant anyone the right to use this work for any purpose, without any conditions, unless such conditions are required by law. |
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:53, 6 March 2009 | 450 × 135 (96 KB) | HYanWong (talk | contribs) | {{Information |Description={{en|1=1D horizontal scatter plot (aka "dot plot" or "strip plot") example with continuous data, square root axis and outliers identified by name. }} |Source=Own work by uploader |Author=HYanWong |Date=2009-03 |
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
Hidden categories: