Skip to content

Commit

Permalink
Last updates from old repo
Browse files Browse the repository at this point in the history
  • Loading branch information
jtleek committed Jan 21, 2014
1 parent 86fc0e9 commit 2da9c6d
Show file tree
Hide file tree
Showing 78 changed files with 7,061 additions and 6,202 deletions.
2 changes: 1 addition & 1 deletion 01_DataScientistToolbox/02_06_01_createNewRepo/index.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ __...OR...__
```
$ mkdir ~/test-repo
```
* Note: The tilda (`~`) symbol refers to your "home" directory, so this will create a directory called `test-repo` in your home directory
* Note: The tilde (`~`) symbol refers to your "home" directory, so this will create a directory called `test-repo` in your home directory
* Navigate to this new directory using the following command (`cd` stands for "change directory"):

```
Expand Down
Binary file added 04_ExploratoryAnalysis/Colors/Colors.pdf
Binary file not shown.
Binary file not shown.
6 changes: 3 additions & 3 deletions 04_ExploratoryAnalysis/Colors/index.Rmd
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title : Plotting and Color in R
subtitle : Computing for Data Analysis
author : Roger Peng, Associate Professor
subtitle :
author : Roger D. Peng, Associate Professor of Biostatistics
job : Johns Hopkins Bloomberg School of Public Health
logo : bloomberg_shield.png
framework : io2012 # {io2012, html5slides, shower, dzslides, ...}
Expand Down Expand Up @@ -177,4 +177,4 @@ mode : selfcontained # {standalone, draft}
- Careful use of colors in plots/maps/etc. can make it easier for the reader to get what you're trying to say (why make it harder?)
- The `RColorBrewer` package is an R package that provides color palettes for sequential, categorical, and diverging data
- The `colorRamp` and `colorRampPalette` functions can be used in conjunction with color palettes to connect data to colors
- Transparency can sometimes be used to clarify plots with many points
- Transparency can sometimes be used to clarify plots with many points
11 changes: 8 additions & 3 deletions 04_ExploratoryAnalysis/Colors/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<title>Plotting and Color in R</title>
<meta charset="utf-8">
<meta name="description" content="Plotting and Color in R">
<meta name="author" content="Roger Peng, Associate Professor">
<meta name="author" content="Roger D. Peng, Associate Professor of Biostatistics">
<meta name="generator" content="slidify" />
<meta name="apple-mobile-web-app-capable" content="yes">
<meta http-equiv="X-UA-Compatible" content="chrome=1">
Expand All @@ -19,6 +19,11 @@
</script>

<link rel="stylesheet" href = "../../assets/css/custom.css">
<link rel="stylesheet" href = "../../assets/css/custom.css.BACKUP.546.css">
<link rel="stylesheet" href = "../../assets/css/custom.css.BASE.546.css">
<link rel="stylesheet" href = "../../assets/css/custom.css.LOCAL.546.css">
<link rel="stylesheet" href = "../../assets/css/custom.css.orig">
<link rel="stylesheet" href = "../../assets/css/custom.css.REMOTE.546.css">
<link rel="stylesheet" href = "../../assets/css/ribbons.css">

</head>
Expand All @@ -37,8 +42,8 @@
</aside>
<hgroup class="auto-fadein">
<h1>Plotting and Color in R</h1>
<h2>Computing for Data Analysis</h2>
<p>Roger Peng, Associate Professor<br/>Johns Hopkins Bloomberg School of Public Health</p>
<h2></h2>
<p>Roger D. Peng, Associate Professor of Biostatistics<br/>Johns Hopkins Bloomberg School of Public Health</p>
</hgroup>
</slide>

Expand Down
4 changes: 2 additions & 2 deletions 04_ExploratoryAnalysis/Colors/index.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title : Plotting and Color in R
subtitle : Computing for Data Analysis
author : Roger Peng, Associate Professor
subtitle :
author : Roger D. Peng, Associate Professor of Biostatistics
job : Johns Hopkins Bloomberg School of Public Health
logo : bloomberg_shield.png
framework : io2012 # {io2012, html5slides, shower, dzslides, ...}
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 04_ExploratoryAnalysis/all_pdf_files.zip
Binary file not shown.
223 changes: 0 additions & 223 deletions 04_ExploratoryAnalysis/announcements.html

This file was deleted.

24 changes: 24 additions & 0 deletions 04_ExploratoryAnalysis/makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
DELAY = 1000
RMD_FILES = $(wildcard */index.Rmd)
HTML_FILES = $(patsubst %.Rmd, %.html, $(RMD_FILES))
PDF_FILES = $(patsubst %/index.html, lectures/%.pdf, $(HTML_FILES))

listfiles:
@echo $(RMD_FILES)
@echo $(HTML_FILES)
@echo $(PDF_FILES)


html: $(HTML_FILES)
pdf: $(PDF_FILES)
all: html pdf

zip: $(PDF_FILES)
zip all_pdf_files.zip $^

lectures/%.pdf: %/index.html
casperjs makepdf.js $< $@ $(DELAY)

%/index.html: %/index.Rmd
cd $(dir $<) && Rscript -e "slidify::slidify('index.Rmd')" && cd ..

10 changes: 10 additions & 0 deletions 04_ExploratoryAnalysis/makepdf.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
var casper = require('casper').create({viewportSize:{width:1500,height:1000}});
var args = casper.cli.args;
var imgfile = (args[1] || Math.random().toString(36).slice(2))
casper.start(args[0], function() {
this.wait(args[2], function(){
this.captureSelector(imgfile, "slides");
});
});

casper.run();
Loading

0 comments on commit 2da9c6d

Please sign in to comment.