vignettes update

This commit is contained in:
pvictor 2020-01-27 18:21:05 +01:00
parent fa4a8c4462
commit 7097b8bf2a
2 changed files with 7 additions and 6 deletions

View File

@ -668,7 +668,8 @@ heatmap <- heatmap %>%
"function(seriesName, opts) {
if (seriesName == 'Missing') return null; else return seriesName;
}"
)
),
itemMargin = list(vertical = 5)
)
```
@ -701,7 +702,7 @@ heatmap <- heatmap %>%
text = "Vaccine Introduced",
orientation = "horizontal",
position = "bottom",
offsetY = 10
offsetY = 0
)
)
)
@ -789,7 +790,8 @@ apex(vaccines, aes(year, state, fill = count), type = "heatmap") %>%
"function(seriesName, opts) {
if (seriesName == 'Missing') return null; else return seriesName;
}"
)
),
itemMargin = list(vertical = 5)
) %>%
ax_yaxis(
labels = list(
@ -811,7 +813,7 @@ apex(vaccines, aes(year, state, fill = count), type = "heatmap") %>%
text = "Vaccine Introduced",
orientation = "horizontal",
position = "bottom",
offsetY = 10
offsetY = 0
)
)
)

View File

@ -113,8 +113,7 @@ apex(data = mtcars, type = "scatter", mapping = aes(x = wt, y = mpg))
Color points according to a third variable:
```{r scatter-fill}
apex(data = mtcars, type = "scatter", mapping = aes(x = wt, y = mpg, fill = cyl)) %>%
ax_xaxis(tickAmount = 5)
apex(data = mtcars, type = "scatter", mapping = aes(x = wt, y = mpg, fill = cyl))
```
And change point size using `z` aesthetics: