File:US Seasonal Unemployment.svg
From Wikimedia Commons, the free media repository
Jump to navigation
Jump to search
Size of this PNG preview of this SVG file: 720 × 540 pixels. Other resolutions: 320 × 240 pixels | 640 × 480 pixels | 1,024 × 768 pixels | 1,280 × 960 pixels | 2,560 × 1,920 pixels.
Original file (SVG file, nominally 720 × 540 pixels, file size: 150 KB)
File information
Structured data
Captions
Summary
[edit]DescriptionUS Seasonal Unemployment.svg |
English: Chart of the seasonal US unemployment rate from the BLS statistics, showing mean, 95% interval and outliers. Puerto Rico has been removed from the data set. Source: ftp://ftp.bls.gov/pub/time.series/la/la.data.3.AllStatesS |
Date | |
Source | Own work |
Author | Autopilot |
Source
[edit]u <- read.table("la.data.3.AllStatesS", header=T, fill=T)
# Convert the months into fractional years
u$time <- u$year + (as.numeric(u$period) - 1) / 12
# Get just the measurement values (those that end in "03")
m <- u[grep("03$", u$series_id),]
# And ignore the ones that are in Puerto-rico, state code 43
m <- subset(m, series_id != "LASST43000003")
# make the year a factor
m$year <- as.factor(m$year)
# Aggregate all samples into a single year average
# leaving per-state data intact
v <- aggregate(m, list(year=m$year, series_id=m$series_id), mean)
# Aggregate all samples into a per-month average
m2 <- aggregate(m, list(year=m$year, period=m$period), mean, na.rm=T)
m2 <- m2[order(m2$time),]
#m2 <- aggregate(m, list(year=m$year), mean, na.rm=T)
# And generate the box plot for every state
par(family="Times")
par(bty="n")
plot(
value ~ year,
data = v,
ylim = c(0,16),
main = "US Seasonally Adjusted Unemployment",
ylab = "Unemployment rate",
xlab = "Year",
las=1
)
grid()
# Add the moving average line
par(new=T)
par(bty="n")
plot(
value ~ time,
data = m2,
col = "red",
type = "l",
ylim = c(0,16),
xlim = c(1976,2011),
main = "",
xlab = "",
ylab = "",
axes = F
);
dev.copy(svg, "US Seasonal Unemployment.svg", width=8, height=6)
dev.off()
Licensing
[edit]I, the copyright holder of this work, hereby publish it under the following licenses:
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license.
- You are free:
- to share – to copy, distribute and transmit the work
- to remix – to adapt the work
- Under the following conditions:
- attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
- share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled GNU Free Documentation License.http://www.gnu.org/copyleft/fdl.htmlGFDLGNU Free Documentation Licensetruetrue |
You may select the license of your choice.
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 01:30, 13 December 2010 | 720 × 540 (150 KB) | Autopilot (talk | contribs) | Added trend line | |
00:41, 13 December 2010 | 720 × 540 (151 KB) | Autopilot (talk | contribs) | {{Information |Description={{en|1=Chart of the seasonal US unemployment rate from the BLS statistics, showing mean, 95% interval and outliers (mostly Puerto Rico). <source lang=sas> # ftp://ftp.bls.gov/pub/time.series/la/la.data.3.AllStatesS u <- read.tab |
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.wikipedia.org
- Usage on en.wikibooks.org