File:R-US state areas-1D sqrt+extras.svg

Original file(SVG file, nominally 450 × 135 pixels, file size: 96 KB)

Description
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
 
This W3C-unspecified chart was created with R.

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 domain 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.

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

6 March 2009

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current22:53, 6 March 2009Thumbnail for version as of 22:53, 6 March 2009450 × 135 (96 KB)HYanWong {{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

The following page uses this file: