Skip to content

Commit

Permalink
Final messing with images.
Browse files Browse the repository at this point in the history
  • Loading branch information
timcdlucas committed Dec 21, 2015
1 parent 49a7f9a commit cd8ca9f
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,11 @@ Usage
```{r lib, eval = TRUE, echo = FALSE}
library(palettetown)
set.seed(10)
imgSize = 6
```

```{r pokedex, eval = TRUE, echo = TRUE, dpi = 200, fig.width = 5, fig.height = 5}
```{r pokedex, eval = TRUE, echo = TRUE, dpi = 200, fig.width = imgSize, fig.height = imgSize}
# Show ten of the better palettes
pokedex()
Expand All @@ -58,18 +60,18 @@ pokedex(cb = 1)

### Base graphics

```{r base, dpi = 200, fig.width = 5, fig.height = 5}
```{r base, dpi = 200, fig.width = imgSize, fig.height = imgSize-1}
plot(rnorm(20), rnorm(20), col = pokepal(pokemon = 137, spread = 6), pch = 16, cex = 1.8)
```

### ggplot2
```{r ggplot2, dpi = 200, fig.width = 5, fig.height = 5}
```{r ggplot2, dpi = 200, fig.width = imgSize, fig.height = imgSize-1}
# palettetown doesn't import ggplot2
library(ggplot2)
qplot(Sepal.Length, Sepal.Width, colour = Species, data=iris, size = 2) +
scale_colour_poke(pokemon = 156, spread = 3)
scale_colour_poke(pokemon = 'Tangela', spread = 3)
qplot(factor(carb), data=mtcars, geom="bar",
fill = factor(carb)) +
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ library(ggplot2)


qplot(Sepal.Length, Sepal.Width, colour = Species, data=iris, size = 2) +
scale_colour_poke(pokemon = 156, spread = 3)
scale_colour_poke(pokemon = 'Tangela', spread = 3)
```

![plot of chunk ggplot2](figure/ggplot2-1.png)
Expand Down
Binary file modified figure/base-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified figure/ggplot2-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified figure/ggplot2-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified figure/pokedex-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified figure/pokedex-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified figure/pokedex-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit cd8ca9f

Please sign in to comment.