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

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

Summary

Description
English: Example R plot: 1D vertical scatter plot (stripplot) of US state areas, quartiles indicated by lines and point colours
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+quartiles.svg", width = 1.5, height = 5, pointsize = 8)
#Example R plot: 1D vertical scatter plot (stripplot) of US state areas, quartiles indicated by lines and point colours
par(mar=c(1,4,3,1.5)+0.1)
Y <- state.area*2.58998811/1000
set.seed(9) #set random number generator (for same random jitter when replotting)
jitter <- runif(length(Y), 0.8, 1.2)
stripchart(Y, vertical=TRUE, pch=NA,
ylab=expression(paste(italic("landArea")," (thousands of square km)")), yaxt="n")
abline(h=seq(0, 2e3, 100), lty="dotted", col="lightgray")
axis(2,seq(0, 2e3, 100), cex.axis=0.8, las=2)
axis(4,quantile(Y, c(0.25,0.5,0.75)), c("Q1","Med","Q3"), cex.axis=0.7, las=1, mgp=c(1,0.1,0), tcl=0)
abline(h=quantile(Y, (1:3)/4), lwd=c(1,3,1), col=c("green","black","red"))
q <- findInterval(Y, quantile(Y, (0:4)/4), TRUE)
points(jitter[q==1], Y[q==1], col="green")
points(jitter[q==2], Y[q==2], col="black")
points(jitter[q==3], Y[q==3], col="black")
points(jitter[q==4], Y[q==4], col="red")
title("Size of US states", outer=TRUE, line=-2) #centre the title on the device
dev.off()

Licensing

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

27 February 2009

File history

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

Date/TimeThumbnailDimensionsUserComment
current22:54, 6 March 2009Thumbnail for version as of 22:54, 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, points jittered and quartiles indicated by lines and point colours. Data {{=}} US state areas}} |Source=Own work by uploader |Auth
16:34, 27 February 2009Thumbnail for version as of 16:34, 27 February 2009135 × 450 (92 KB)HYanWong{{Information |Description={{en|1=Example R plot: 1D vertical scatter plot (stripplot) of US state areas, quartiles indicated by lines and point colours}} |Source=Own work by uploader |Author=HYanWong |Date=2009-02-27 |Permission= |other
22:11, 26 February 2009Thumbnail for version as of 22:11, 26 February 2009135 × 450 (83 KB)HYanWong{{Information |Description={{en|1=Example R plot: 1D vertical scatter plot (stripplot) of US state areas, quartiles indicated by lines and point colours}} |Source=Own work by uploader |Author=HYanWong |Date=2009-02-26 |Permission= |other
22:44, 2 February 2009Thumbnail for version as of 22:44, 2 February 2009135 × 450 (82 KB)HYanWong{{Information |Description={{en|1=Example R plot: 1D vertical scatter plot (stripplot) of US state areas, quartiles indicated by lines and point colours}} |Source=Own work by uploader |Author=HYanWong |Date=2009-02-02 |Permission= |other

The following page uses this file: