Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eiriksm/r-lang
Testing R
https://github.com/eiriksm/r-lang
beer r
Last synced: 1 day ago
JSON representation
Testing R
- Host: GitHub
- URL: https://github.com/eiriksm/r-lang
- Owner: eiriksm
- Created: 2014-05-31T09:35:34.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-06-01T14:40:26.000Z (over 10 years ago)
- Last Synced: 2024-11-07T19:51:49.811Z (about 2 months ago)
- Topics: beer, r
- Size: 305 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
r-lang
======Testing R.
Data sources:
- [Lahman's Baseball Database](http://seanlahman.com/baseball-archive/statistics/)
- [The Bureau of Labor Statistics: Consumer Price Index](http://www.bls.gov/cpi/)The plot shows the average salary of baseball players per year laid on top of how many 6-packs of imported beers the average salary could buy each year. Extremely useful.
### Usage
The script can be run as follows:```
Rscript bsalaries.r
```This will generate an svg file with the plot. If you get an error (for example if you have an old version of cairo or something) you can run the script with png as only argument. Like so:
```
Rscript bsalaries.r png
```![Not so useful beer stats](https://rawgit.com/eiriksm/r-lang/master/Beer.svg)