File:R-Dunn gender barchart.svg

Original file(SVG file, nominally 225 × 450 pixels, file size: 60 KB)

Summary

Description
English: Example R plot: simple bar chart of genders in the babyboom dataset (see Dunn [1999] Journal of Statistics Education v.7, n.3)
Date
Source Own work
Author HYanWong
 
This W3C-unspecified chart was created with R.

using the following commands

svg(file = "R-Dunn_gender_barchart.svg", width = 2.5, height = 5, pointsize = 8)
#Example R plot: simple bar chart of genders in the babyboom dataset (see Dunn [1999] Journal of Statistics Education v.7, n.3)
Coded <- factor(c(1, 1, 2, 2, 2, 1, 1, 2, 2, 2, 2, 2, 1, 1, 2, 1, 1, 2, 2, 2, 2, 1, 1, 1, 1, 2, 2, 2, 1, 2, 1, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 1, 1, 1))
Gender <- factor(Coded, labels=c("Female", "Male"))
plot(Gender, ylim=c(0,30), xlab=expression(italic("gender")), ylab="Number of children born")
title("Births in 24 hours in a\nsingle Australian hospital", line=1.7)
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

30 January 2009

File history

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

Date/TimeThumbnailDimensionsUserComment
current15:29, 30 January 2009Thumbnail for version as of 15:29, 30 January 2009225 × 450 (60 KB)HYanWong{{Information |Description={{en|1=Example R plot: simple bar chart of genders in the babyboom dataset (see Dunn [1999] Journal of Statistics Education v.7, n.3)}} |Source=Own work by uploader |Author=HYanWong |Date=2009-01-30 |Permission

The following page uses this file: