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

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

Description
English: 1D horizontal scatter plot (aka "dot plot" or "strip plot") example with continuous data, logged axis and outliers identified by name. Data = US state areas
Date
Source Own work
Author HYanWong
Permission
(Reusing this file)
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.
 
This W3C-unspecified chart was created with R.

using the following commands

svg(file = "R-US_state_areas-1D_log+extras.svg", width = 5, height = 1.5, pointsize = 8)
#1D horizontal scatter plot (aka "dot plot" or "strip plot") example with continuous data, logged axis and outliers identified by name. Data = US state areas 
par(mar=c(3,4,4,1)+0.1)
X <- log10(state.area*2.58998811)
stripchart(X, pch=1, xaxt="n", xlab=expression(paste(italic("landArea")," (square km)")), mgp=c(2,0.5,0))
axis(1,log10(1:9*rep(10^(3:7), each=9)), rep("", 45))
axis(1,log10(10^(3:6)), expression(10^3, 10^4, 10^5, 10^6), cex.axis=0.8, mgp=c(2,0.5,0))
abline(v=log10(seq(0, 2e6, 100000)), 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()

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 (97 KB)HYanWong {{Information |Description={{en|1=1D horizontal scatter plot (aka "dot plot" or "strip plot") example with continuous data, logged axis and outliers identified by name. Data {{=}} US state areas }} |Source=Own work by uploader |Author=[[User:HYanWong|HYa

The following page uses this file: