This is a file from the Wikimedia Commons

File:R-US state areas-1D.svg

From Wikibooks, open books for an open world
Jump to navigation Jump to search

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

Description
English: 1D horizontal scatter plot (aka "dot plot" or "strip plot") example with continuous data, 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.svg", width = 5, height = 1.5, pointsize = 8)
#1D horizontal scatter plot (aka "dot plot" or "strip plot") example with continuous data, outliers identified by name. Data = US state areas
par(mar=c(4,1,3,1)+0.1)
X <- state.area*2.58998811/1000
stripchart(X, pch=1,
xlab=expression(paste(italic("landArea")," (thousands of square km)")), xaxt="n")
axis(1,seq(0, 2e3, 100), cex.axis=0.8, las=2)
abline(v=seq(0, 2e3, 100), lty="dotted", col="lightgray")
title("Size of US states")

###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()

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
current21:41, 6 March 2009Thumbnail for version as of 21:41, 6 March 2009450 × 135 (95 KB)HYanWong {{Information |Description={{en|1=1D horizontal scatter plot (aka "dot plot" or "strip plot") example with continuous data, outliers identified by name. Data {{=}} US state areas}} |Source=Own work by uploader |Author=HYanWong |Date=200
22:44, 2 February 2009Thumbnail for version as of 22:44, 2 February 2009135 × 450 (96 KB)HYanWong{{Information |Description={{en|1=Example R plot: 1D vertical scatter plot (stripplot) of US state areas, with outliers identified by name}} |Source=Own work by uploader |Author=HYanWong |Date=2009-02-02 |Permission= |other_versions= }}
21:34, 23 January 2009Thumbnail for version as of 21:34, 23 January 2009180 × 360 (78 KB)HYanWong{{Information |Description=Example R plot: 1D vertical scatter plot (stripplot) of US state areas, with outliers identified by name |Source=Own work by uploader |Author=HYanWong |Date=2009-01-23 |Permission= |other_versions= }} {{Created

The following page uses this file: