Skip to content

Commit fd50f9d

Browse files
Update dataviz
1 parent ff9e98d commit fd50f9d

File tree

6 files changed

+19
-4
lines changed

6 files changed

+19
-4
lines changed

_freeze/html/data-visualization/execute-results/html.json

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"hash": "a5233f5a1a641b363f1a8caa1605c22d",
3+
"result": {
4+
"engine": "knitr",
5+
"markdown": "---\ntitle: \"Data visualization with Plotnine :: Cheatsheet\"\ndescription: \" \"\nimage-alt: \"\"\nexecute:\n eval: true\n output: false\n warning: false\n---\n\n<img src=\"images/logo-plotnine.png\" height=\"138\" alt=\"Hex logo for plotnine - illustration of a spaceship and plotnine geoms in its light.\"> <br><br><a href=\"../plotnine.pdf\">\n\n\n::: {.cell .column-margin}\n<a href=\"../plotnine.pdf\">\n<p><i class=\"bi bi-file-pdf\"></i> Download PDF</p>\n<img src=\"../pngs/plotnine.png\" width=\"200\" alt=\"\"/>\n</a>\n<br><br>\n:::\n\n\n\nWill be updated soon!\n",
6+
"supporting": [],
7+
"filters": [
8+
"rmarkdown/pagebreak.lua"
9+
],
10+
"includes": {},
11+
"engineDependencies": {},
12+
"preserve": {},
13+
"postProcess": true
14+
}
15+
}

data-visualization.pdf

122 KB
Binary file not shown.

html/data-visualization.qmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ d <- ggplot(mpg, aes(fl))
158158
e <- ggplot(mpg, aes(cty, hwy))
159159
```
160160

161-
- `e + geom_label(aes(label = cty), nudge_x = 1, nudge_y = 1)`: Add text with a rectangle background.
161+
- `e + geom_label(aes(label = cty))`: Add text with a rectangle background.
162162
`aes()` arguments: - `x`, `y`, `label`, `alpha`, `angle`, `color`, `family`, `fontface`, `hjust`, `lineheight`, `size`, `vjust`.
163163

164164
- `e + geom_point()`: Draw a scatter plot.
@@ -173,7 +173,7 @@ e <- ggplot(mpg, aes(cty, hwy))
173173
- `e + geom_smooth(method = lm)`: Plot smoothed conditional means.
174174
`aes()` arguments: `x`, `y`, `alpha`, `color`, `fill`, `group`, `linetype`, `linewidth`, `weight`.
175175

176-
- `e + geom_text(aes(label = cty), nudge_x = 1, nudge_y = 1)`: Add text to a plot.
176+
- `e + geom_text(aes(label = cty))`: Add text to a plot.
177177
`aes()` arguments: `x`, `y`, `label`, `alpha`, `angle`, `color`, `family`, `fontface`, `hjust`, `lineheight`, `size`, `vjust`.
178178

179179
### Two Variables - One Discrete, One Continuous

html/images/logo-ggplot2.png

0 Bytes
Loading

keynotes/data-visualization.key

-1.88 KB
Binary file not shown.

0 commit comments

Comments
 (0)