diff --git a/vignettes/advanced-configuration.Rmd b/vignettes/advanced-configuration.Rmd index 89c28ef..cb5200c 100644 --- a/vignettes/advanced-configuration.Rmd +++ b/vignettes/advanced-configuration.Rmd @@ -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 ) ) ) diff --git a/vignettes/starting-with-apexcharts.Rmd b/vignettes/starting-with-apexcharts.Rmd index 0bef8d4..a64c013 100644 --- a/vignettes/starting-with-apexcharts.Rmd +++ b/vignettes/starting-with-apexcharts.Rmd @@ -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: