diff --git a/DESCRIPTION b/DESCRIPTION index 3f091ed..cf70f8b 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,5 +1,5 @@ Package: apexcharter -Version: 0.1.2 +Version: 0.1.2.900 Title: Create Interactive Chart with the JavaScript 'ApexCharts' Library Description: Provides an 'htmlwidgets' interface to 'apexcharts.js'. 'Apexcharts' is a modern JavaScript charting library to build interactive charts and visualizations with simple API. diff --git a/_pkgdown.yml b/_pkgdown.yml index b46c2fb..2e09694 100644 --- a/_pkgdown.yml +++ b/_pkgdown.yml @@ -18,6 +18,8 @@ navbar: href: articles/labs.html - text: "Options & styles for lines" href: articles/lines.html + - text: "Advanced configuration" + href: articles/advanced-configuration.html - text: News href: news/index.html right: diff --git a/docs/LICENSE-text.html b/docs/LICENSE-text.html index 568c7b4..582c293 100644 --- a/docs/LICENSE-text.html +++ b/docs/LICENSE-text.html @@ -8,11 +8,13 @@
vignettes/advanced-configuration.Rmd
+ advanced-configuration.Rmd
Here some advanced configuration examples to use the full potential of ApexCharts.
+This example is taken from {hrbrthemes} readme, it use mpg
dataset from {ggplot2}.
Tranform data and initialize the chart :
+data("mpg", package = "ggplot2")
+
+bars <- count(mpg, class) %>%
+ mutate(pct = n/sum(n)) %>%
+ apex(mapping = aes(class, pct), type = "column")
Change color used :
+ +Modify the y-axis and add a percent symbol after the labels :
+bars <- bars %>%
+ ax_yaxis(
+ title = list(text = "Weight (tons)"),
+ labels = list(
+ formatter = JS(
+ "function(value) {return Math.round(value * 100) + '%';}"
+ )
+ ),
+ tickAmount = 6
+ )
Add a title to the x-axis :
+ +Modify the tooltip to display “Percentage” instead of the variable name “pct” :
+bars <- bars %>%
+ ax_tooltip(
+ y = list(
+ title = list(
+ formatter = JS("function() {return 'Percentage';}")
+ )
+ )
+ )
Add title and subtitle and format them :
+bars <- bars %>%
+ ax_labs(
+ title = "Seminal ggplot2 column chart example with percents",
+ subtitle = "Example taken from {hrbrthemes} readme"
+ ) %>%
+ ax_title(
+ style = list(fontSize = "22px")
+ ) %>%
+ ax_subtitle(
+ style = list(fontSize = "16px", color = "#BDBDBD")
+ )
Final result looks like :
+ + +View full code
data("mpg", package = "ggplot2")
+
+count(mpg, class) %>%
+ mutate(pct = n/sum(n)) %>%
+ apex(mapping = aes(class, pct), type = "column") %>%
+ ax_colors("#617a89")%>%
+ ax_yaxis(
+ title = list(text = "Weight (tons)"),
+ labels = list(
+ formatter = JS(
+ "function(value) {return Math.round(value * 100) + '%';}"
+ )
+ ),
+ tickAmount = 6
+ ) %>%
+ ax_xaxis(
+ title = list(text = "Fuel efficiency (mpg)")
+ ) %>%
+ ax_tooltip(
+ y = list(
+ title = list(
+ formatter = JS("function() {return 'Percentage';}")
+ )
+ )
+ ) %>%
+ ax_labs(
+ title = "Seminal ggplot2 column chart example with percents",
+ subtitle = "Example taken from {hrbrthemes} readme"
+ ) %>%
+ ax_title(
+ style = list(fontSize = "22px")
+ ) %>%
+ ax_subtitle(
+ style = list(fontSize = "16px", color = "#BDBDBD")
+ )
Dataset used is from the UNHCR (The UN Refugee Agency) and contains data about UNHCR’s populations of concern summarised by continent of orginin.
+Tranform data and initialize the chart :
+data("unhcr_ts")
+
+lines <- unhcr_ts %>%
+ filter(population_type == "Refugees (incl. refugee-like situations)") %>%
+ mutate(date = as.Date(paste0(year, "-01-01"))) %>%
+ apex(aes(date, n, group = continent_origin), type = "line")
Put the legend at the bottom :
+ +Change the width of the lines :
+ +Change the colors (Viridis palette) :
+ +Data are in million, in the y-axis we divide by 1e6
to limit the number of digits :
lines <- lines %>%
+ ax_yaxis(
+ labels = list(
+ formatter = JS("function(val) {return (val/1e6).toFixed(0);}")
+ ),
+ title = list(text = "Number of refugees (in million)")
+ )
Only display the years in the x-axis labels :
+ +Same in tooltip, and a thousand separator in the value displayed :
+lines <- lines %>%
+ ax_tooltip(
+ x = list(format = "yyyy"),
+ y = list(
+ formatter = JS(
+ # thousand separator in javascript
+ "function(value) {return value.toString().replace(/\\B(?=(\\d{3})+(?!\\d))/g, \",\");}"
+ )
+ )
+ )
Add an annotation to the chart to identify the Great Lakes refugee crisis in 1994 :
+lines <- lines %>%
+ ax_annotations(
+ points = list(
+ list(
+ x = JS("new Date('1994').getTime()"),
+ y = 6935296,
+ label = list(text = "Great Lakes refugee crisis", offsetY = 0),
+ marker = list(size = 6)
+ )
+ )
+ )
Add title and subtitle and format them :
+lines <- lines %>%
+ ax_labs(
+ title = "Continent of origin for refugees population",
+ subtitle = "Data from the UN Refugee Agency"
+ ) %>%
+ ax_title(
+ style = list(fontSize = "22px")
+ ) %>%
+ ax_subtitle(
+ style = list(fontSize = "16px", color = "#BDBDBD")
+ )
Final result looks like :
+ + +View full code
data("unhcr_ts")
+
+unhcr_ts %>%
+ filter(population_type == "Refugees (incl. refugee-like situations)") %>%
+ mutate(date = as.Date(paste0(year, "-01-01"))) %>%
+ apex(aes(date, n, group = continent_origin), type = "line") %>%
+ ax_legend(position = "bottom") %>%
+ ax_stroke(width = 2) %>%
+ ax_colors("#440154", "#414487", "#2A788E",
+ "#22A884", "#7AD151", "#FDE725") %>%
+ ax_yaxis(
+ labels = list(
+ formatter = htmlwidgets::JS("function(val) {return (val/1e6).toFixed(0);}")
+ ),
+ title = list(text = "Number of refugees (in million)")
+ ) %>%
+ ax_xaxis(labels = list(format = "yyyy")) %>%
+ ax_tooltip(
+ x = list(format = "yyyy"),
+ y = list(
+ formatter = JS(
+ # thousand separator in javascript
+ "function(value) {return value.toString().replace(/\\B(?=(\\d{3})+(?!\\d))/g, \",\");}"
+ )
+ )
+ ) %>%
+ ax_annotations(
+ points = list(
+ list(
+ x = JS("new Date('1994').getTime()"),
+ y = 6935296,
+ label = list(text = "Great Lakes refugee crisis", offsetY = 0),
+ marker = list(size = 6)
+ )
+ )
+ ) %>%
+ ax_labs(
+ title = "Continent of origin for refugees population",
+ subtitle = "Data from the UN Refugee Agency"
+ ) %>%
+ ax_title(
+ style = list(fontSize = "22px")
+ ) %>%
+ ax_subtitle(
+ style = list(fontSize = "16px", color = "#BDBDBD")
+ )
Dataset used is from {gapminder}.
+Tranform data and initialize the chart :
+data("gapminder", package = "gapminder")
+
+scatter <- gapminder %>%
+ filter(year == 2007) %>%
+ mutate(
+ gdpPercap = log(gdpPercap),
+ pop = sqrt(pop / pi) / 1500
+ ) %>%
+ apex(
+ mapping = aes(gdpPercap,
+ lifeExp,
+ z = pop,
+ group = continent,
+ label = country),
+ type = "scatter",
+ height = "500px"
+ )
Enable zoom on both axis :
+ +Show y-axis border and ticks, no decimals in labels :
+scatter <- scatter %>%
+ ax_yaxis(
+ decimalsInFloat = 0,
+ axisBorder = list(show = TRUE),
+ axisTicks = list(show = TRUE),
+ title = list(text = "life expectancy at birth (in years)")
+ )
Configuration for x-axis, hide the tooltip displayed on the axis itself (not the main tooltip), dispaly two decimals in the labels (useful when zooming, since values are logarithm there’s a lot of decimals) :
+scatter <- scatter %>%
+ ax_xaxis(
+ tickAmount = 8,
+ labels = list(
+ formatter = JS("function(val) {return val.toFixed(2);}")
+ ),
+ tooltip = list(enabled = FALSE),
+ title = list(text = "GDP per capita (log-scale)")
+ )
Display vertical grid lines (on the x-axis, those on the y-axis are enabled by default) :
+ +Legend on the right and slightly offset downwards :
+ +Adjust the effect when hovering points :
+ +Add a custom tooltip with an HTML string, data used in aesthetic can be accessed in JavaScrip with w.config.series[seriesIndex].data[dataPointIndex].x
(x is the variable gdpPercap
), or w.config.series[seriesIndex].data[dataPointIndex].label
(the country), it’s possible to use custom aesthetics to include more data in the chart configuration script.
scatter <- scatter %>%
+ ax_tooltip(custom = JS(paste(
+ "function({ series, seriesIndex, dataPointIndex, w }) {",
+ "console.log(w); return (",
+ "'<div>' +",
+
+ "'<div class = \"apexcharts-tooltip-title\">' +",
+ "w.config.series[seriesIndex].data[dataPointIndex].label",
+ "+ '</div>' +",
+ "'<div style = \"padding: 5px;\">' +",
+ "'<div class = \"apexcharts-tooltip-y-group\">' +",
+
+ "'<span class = \"apexcharts-tooltip-text-label\">' +",
+ "'Population: ' +",
+ "'</span>' +",
+ "'<span class = \"apexcharts-tooltip-text-value\">' +",
+ "Math.round(Math.pow(w.config.series[seriesIndex].data[dataPointIndex].z * 1500, 2) * Math.PI).
+ toString().replace(/\\B(?=(\\d{3})+(?!\\d))/g, \",\") +",
+ "'</span>' +",
+
+ "'</br>' +",
+
+ "'<span class = \"apexcharts-tooltip-text-label\">' +",
+ "'GDP per capita: ' +",
+ "'</span>' +",
+ "'<span class = \"apexcharts-tooltip-text-value\">' +",
+ "Math.round(Math.exp(w.config.series[seriesIndex].data[dataPointIndex].x)) +",
+ "'</span>' +",
+
+ "'</br>' +",
+
+ "'<span class = \"apexcharts-tooltip-text-label\">' +",
+ "'Life expectancy: ' +",
+ "'</span>' +",
+ "'<span class = \"apexcharts-tooltip-text-value\">' +",
+ "w.config.series[seriesIndex].data[dataPointIndex].y +",
+ "'</span>' +",
+
+
+ "'</div>' +",
+ "'</div>' +",
+
+ "'</div>'",
+ ");",
+ "}", sep = "\n"
+ )))
Add title and subtitle and format them :
+scatter <- scatter %>%
+ ax_labs(
+ title = "Life expectancy, GDP and population",
+ subtitle = "gapminder dataset from {gapminder}"
+ ) %>%
+ ax_title(
+ style = list(fontSize = "22px")
+ ) %>%
+ ax_subtitle(
+ style = list(fontSize = "16px", color = "#BDBDBD")
+ )
Final result looks like :
+ + +View full code
data("gapminder", package = "gapminder")
+
+gapminder %>%
+ filter(year == 2007) %>%
+ mutate(
+ gdpPercap = log(gdpPercap),
+ pop = sqrt(pop / pi) / 1500
+ ) %>%
+ apex(mapping = aes(gdpPercap, lifeExp, z = pop, group = continent, label = country), type = "scatter") %>%
+ ax_chart(zoom = list(
+ enabled = TRUE, type = "xy"
+ )) %>%
+ ax_yaxis(
+ decimalsInFloat = 0,
+ axisBorder = list(show = TRUE),
+ axisTicks = list(show = TRUE),
+ title = list(text = "life expectancy at birth (in years)")
+ ) %>%
+ ax_xaxis(
+ tickAmount = 8,
+ labels = list(
+ formatter = JS("function(val) {return val.toFixed(2);}")
+ ),
+ tooltip = list(enabled = FALSE),
+ title = list(text = "GDP per capita (log-scale)")
+ ) %>%
+ ax_grid(xaxis = list(lines = list(show = TRUE))) %>%
+ ax_legend(position = "right", offsetY = 70) %>%
+ ax_markers(hover = list(sizeOffset = 0, size = 25)) %>%
+ ax_tooltip(custom = JS(paste(
+ "function({ series, seriesIndex, dataPointIndex, w }) {",
+ "console.log(w); return (",
+ "'<div>' +",
+
+ "'<div class = \"apexcharts-tooltip-title\">' +",
+ "w.config.series[seriesIndex].data[dataPointIndex].label",
+ "+ '</div>' +",
+ "'<div style = \"padding: 5px;\">' +",
+ "'<div class = \"apexcharts-tooltip-y-group\">' +",
+
+ "'<span class = \"apexcharts-tooltip-text-label\">' +",
+ "'Population: ' +",
+ "'</span>' +",
+ "'<span class = \"apexcharts-tooltip-text-value\">' +",
+ "Math.round(Math.pow(w.config.series[seriesIndex].data[dataPointIndex].z * 1500, 2) * Math.PI).
+ toString().replace(/\\B(?=(\\d{3})+(?!\\d))/g, \",\") +",
+ "'</span>' +",
+
+ "'</br>' +",
+
+ "'<span class = \"apexcharts-tooltip-text-label\">' +",
+ "'GDP per capita: ' +",
+ "'</span>' +",
+ "'<span class = \"apexcharts-tooltip-text-value\">' +",
+ "Math.round(Math.exp(w.config.series[seriesIndex].data[dataPointIndex].x)) +",
+ "'</span>' +",
+
+ "'</br>' +",
+
+ "'<span class = \"apexcharts-tooltip-text-label\">' +",
+ "'Life expectancy: ' +",
+ "'</span>' +",
+ "'<span class = \"apexcharts-tooltip-text-value\">' +",
+ "w.config.series[seriesIndex].data[dataPointIndex].y +",
+ "'</span>' +",
+
+
+ "'</div>' +",
+ "'</div>' +",
+
+ "'</div>'",
+ ");",
+ "}", sep = "\n"
+ ))) %>%
+ ax_labs(
+ title = "Life expectancy, GDP and population",
+ subtitle = "gapminder dataset from {gapminder}"
+ ) %>%
+ ax_title(
+ style = list(fontSize = "22px")
+ ) %>%
+ ax_subtitle(
+ style = list(fontSize = "16px", color = "#BDBDBD")
+ )
This is an adaption of this fancy {highcharter} example, based from this WSJ visualisation.
+data("vaccines", package = "highcharter")
+
+heatmap <- apex(
+ vaccines,
+ aes(year, state, fill = count),
+ type = "heatmap",
+ height = "800px"
+)
Remove the animations (little slow otherwise) :
+ +Remove values displayed in the heatmap :
+ +Remove space between squared of the heatmap :
+ +That’s not possible to make a continuous scale in the legend (like with highcharter), so we use breakpoints :
+heatmap <- heatmap %>%
+ ax_plotOptions(
+ heatmap = heatmap_opts(
+ radius = 0,
+ enableShades = FALSE,
+ colorScale = list(
+ ranges = list(
+ list(
+ from = 0,
+ to = 0.001,
+ name = "Missing",
+ color = "#FFF"
+ ),
+ list(
+ from = 0.001,
+ to = 4,
+ name = "low",
+ # color = "#000004"
+ color = "#FDE725"
+ ),
+ list(
+ from = 4,
+ to = 70,
+ name = "mid-low",
+ # color = "#781C6D",
+ color = "#35B779"
+ ),
+ list(
+ from = 70,
+ to = 290,
+ name = "mid-high",
+ # color = "#ED6925",
+ color = "#31688E"
+ ),
+ list(
+ from = 290,
+ to = 3000,
+ name = "high",
+ # color = "#FCFFA4",
+ color = "#440154"
+ )
+ )
+ )
+ )
+ )
Missing values are colored by default, above we set them to be displayed in white, and now we hide the corresponding legend :
+heatmap <- heatmap %>%
+ ax_legend(
+ formatter = JS(
+ "function(seriesName, opts) {
+ if (seriesName == 'Missing') return null; else return seriesName;
+ }"
+ )
+ )
Set size of the y-axis labels :
+ +Add a vertical line to identify the year when the vaccine was intrtoduced :
+heatmap <- heatmap %>%
+ ax_annotations(
+ xaxis = list(
+ list(
+ x = 1963, x2 = 1963.1,
+ strokeDashArray = 0,
+ opacity = 1,
+ borderColor = "firebrick",
+ fillColor = "firebrick",
+ label = list(
+ borderColor = "firebrick",
+ style = list(color = "#FFF", background = "firebrick"),
+ text = "Vaccine Intoduced",
+ orientation = "horizontal",
+ position = "bottom",
+ offsetY = 10
+ )
+ )
+ )
+ )
As usual, add title and subtitle and format them :
+heatmap <- heatmap %>%
+ ax_labs(
+ title = "Infectious Diseases and Vaccines",
+ subtitle = "vaccines dataset from {highcharter}"
+ ) %>%
+ ax_title(
+ style = list(fontSize = "22px")
+ ) %>%
+ ax_subtitle(
+ style = list(fontSize = "16px", color = "#BDBDBD")
+ )
Final result looks like :
+ + +View full code
data("vaccines", package = "highcharter")
+
+apex(vaccines, aes(year, state, fill = count), type = "heatmap") %>%
+ ax_chart(animations = list(enabled = FALSE)) %>%
+ ax_dataLabels(enabled = FALSE) %>%
+ ax_stroke(width = 0) %>%
+ ax_plotOptions(
+ heatmap = heatmap_opts(
+ radius = 0,
+ enableShades = FALSE,
+ colorScale = list(
+ ranges = list(
+ list(
+ from = 0,
+ to = 0.001,
+ name = "Missing",
+ color = "#FFF"
+ ),
+ list(
+ from = 0.001,
+ to = 4,
+ name = "low",
+ # color = "#000004"
+ color = "#FDE725"
+ ),
+ list(
+ from = 4,
+ to = 70,
+ name = "mid-low",
+ # color = "#781C6D",
+ color = "#35B779"
+ ),
+ list(
+ from = 70,
+ to = 290,
+ name = "mid-high",
+ # color = "#ED6925",
+ color = "#31688E"
+ ),
+ list(
+ from = 290,
+ to = 3000,
+ name = "high",
+ # color = "#FCFFA4",
+ color = "#440154"
+ )
+ )
+ )
+ )
+ ) %>%
+ ax_legend(
+ formatter = JS(
+ "function(seriesName, opts) {
+ if (seriesName == 'Missing') return null; else return seriesName;
+ }"
+ )
+ ) %>%
+ ax_yaxis(
+ labels = list(
+ style = list(fontSize = "8px"),
+ offsetY = -20
+ )
+ ) %>%
+ ax_annotations(
+ xaxis = list(
+ list(
+ x = 1963, x2 = 1963.1,
+ strokeDashArray = 0,
+ opacity = 1,
+ borderColor = "firebrick",
+ fillColor = "firebrick",
+ label = list(
+ borderColor = "firebrick",
+ style = list(color = "#FFF", background = "firebrick"),
+ text = "Vaccine Intoduced",
+ orientation = "horizontal",
+ position = "bottom",
+ offsetY = 10
+ )
+ )
+ )
+ ) %>%
+ ax_labs(
+ title = "Infectious Diseases and Vaccines",
+ subtitle = "vaccines dataset from {highcharter}"
+ ) %>%
+ ax_title(
+ style = list(fontSize = "22px")
+ ) %>%
+ ax_subtitle(
+ style = list(fontSize = "16px", color = "#BDBDBD")
+ )
apex(data = n_cut, type = "column", mapping = aes(x = cut, y = n)) %>%
ax_title(text = "Cut distribution")
You can set some options, for example:
+ +You can set some options, for example:
apex(data = n_cut, type = "column", mapping = aes(x = cut, y = n)) %>%
ax_title(
text = "Cut distribution",
align = "center",
style = list(fontSize = "22px")
)
Full list of parameters is available here : https://apexcharts.com/docs/options/title/
+ +Full list of parameters is available here : https://apexcharts.com/docs/options/title/
With same options than for title:
+ +With same options than for title:
apex(data = n_cut, type = "column", mapping = aes(x = cut, y = n)) %>%
ax_title(
text = "Cut distribution",
@@ -137,8 +140,8 @@
align = "center",
style = list(fontSize = "16px", color = "#BDBDBD")
)
Full list of parameters is available here : https://apexcharts.com/docs/options/subtitle/
+ +Full list of parameters is available here : https://apexcharts.com/docs/options/subtitle/
With some options:
+ +With some options:
- - + +Classic line:
- -Spline curve:
+ +Spline curve:
apex(data = economics, type = "line", mapping = aes(x = date, y = uempmed)) %>%
ax_stroke(curve = "smooth")
Steps chart:
+ +Steps chart:
- - + +Solid area color:
+ +Solid area color:
apex(data = economics, type = "area", mapping = aes(x = date, y = uempmed)) %>%
ax_fill(type = "solid", opacity = 1)
Line width:
+ +Line width:
apex(data = economics, type = "line", mapping = aes(x = date, y = uempmed)) %>%
ax_stroke(width = 1)
Dotted line
+ +Dotted line
- - + +Add points to line :
apex(data = tail(economics, 20), type = "line", mapping = aes(x = date, y = uempmed)) %>%
ax_markers(size = 6)
Add labels over points
+ +Add labels over points
- - + +vignettes/starting-with-apexcharts.Rmd
starting-with-apexcharts.Rmd
Flipping coordinates can be done by using type = "bar"
:
Flipping coordinates can be done by using type = "bar"
:
To create a dodge bar charts, use aesthetic fill
:
To create a dodge bar charts, use aesthetic fill
:
n_manufac_year <- count(mpg, manufacturer, year)
apex(data = n_manufac_year, type = "column", mapping = aes(x = manufacturer, y = n, fill = year))
For stacked bar charts, specify option stacked
in ax_chart
:
For stacked bar charts, specify option stacked
in ax_chart
:
To represent several lines, use a data.frame
in long format and the group
aesthetic:
To represent several lines, use a data.frame
in long format and the group
aesthetic:
data("economics_long")
economics_long <- economics_long %>%
group_by(variable) %>%
@@ -143,29 +146,29 @@
apex(data = economics_long, type = "line", mapping = aes(x = date, y = value01, group = variable)) %>%
ax_yaxis(decimalsInFloat = 2) # number of decimals to keep
Create area charts with type = "area"
:
Create area charts with type = "area"
:
Simple bar charts can be created with:
- -Color points according to a third variable:
+ +Color points according to a third variable:
apex(data = mtcars, type = "scatter", mapping = aes(x = wt, y = mpg, fill = cyl)) %>%
ax_xaxis(tickAmount = 5)
And change point size using z
aesthetics:
And change point size using z
aesthetics:
Simple radial charts can be created with (here we pass values directly in aes
, but you can use a data.frame
) :
Multi radial chart (more than one value):
+ +Multi radial chart (more than one value):
- - + +With a grouping variable:
+ +With a grouping variable:
- - + +Initialize a chart with three main parameters : data, mapping and type of chart.
-apex(data, mapping, type = "column", ..., auto_update = TRUE, width = NULL, height = NULL, elementId = NULL)- +
Use an explicit element ID for the widget. |
A apexcharts
htmlwidget
object.
library(dplyr)#> @@ -225,9 +227,7 @@@@ -94,13 +97,15 @@Contents
diff --git a/docs/reference/apexchart.html b/docs/reference/apexchart.html index 603c91c..2471ed0 100644 --- a/docs/reference/apexchart.html +++ b/docs/reference/apexchart.html @@ -8,11 +8,13 @@Create a apexcharts.js widget — apexchart • apexcharter + + @@ -30,13 +32,14 @@ - + + @@ -63,7 +66,7 @@ apexcharter - 0.1.2 + 0.1.2.900
Create a apexcharts.js widget
-apexchart(ax_opts = list(), auto_update = TRUE, width = NULL, height = NULL, elementId = NULL)- +
Use an explicit element ID for the widget. |
A apexcharts
htmlwidget
object.
@@ -204,9 +206,7 @@@@ -94,13 +97,15 @@Contents
diff --git a/docs/reference/apexchartProxy.html b/docs/reference/apexchartProxy.html index bb66a88..647fdc0 100644 --- a/docs/reference/apexchartProxy.html +++ b/docs/reference/apexchartProxy.html @@ -8,11 +8,13 @@Proxy for + + @@ -30,13 +32,14 @@ - + + @@ -63,7 +66,7 @@ apexcharter - 0.1.2 + 0.1.2.900apexchart
— apexchartProxy • apexcharter
Allow to update a chart in Shiny application.
-apexchartProxy(shinyId, session = shiny::getDefaultReactiveDomain())- +
The following functions are imported and then re-exported from the apexcharter package to avoid listing the magrittr as Depends of apexcharter
-htmlwidget
interface to the
ApexCharts javascript chart library — apexcharter-package • apexcharterThis package allow you to use ApexCharts.js (https://apexcharts.com/), to create interactive and modern SVG charts.
-Victor Perrier (@dreamRs_fr)
diff --git a/docs/reference/apexcharter-shiny.html b/docs/reference/apexcharter-shiny.html index b160317..dc975bb 100644 --- a/docs/reference/apexcharter-shiny.html +++ b/docs/reference/apexcharter-shiny.html @@ -8,11 +8,13 @@Output and render functions for using apexcharter within Shiny applications and interactive Rmd documents.
-apexchartOutput(outputId, width = "100%", height = "400px") renderApexchart(expr, env = parent.frame(), quoted = FALSE)- +
An Apexchart output that can be included in the application UI.
-@@ -212,9 +214,7 @@ is useful if you want to save an expression in a variable.@@ -94,13 +97,15 @@Contents
diff --git a/docs/reference/ax-series.html b/docs/reference/ax-series.html index a3c03ba..14c4d03 100644 --- a/docs/reference/ax-series.html +++ b/docs/reference/ax-series.html @@ -8,11 +8,13 @@Add data to a chart — ax-series • apexcharter + + @@ -30,13 +32,14 @@ - + + @@ -63,7 +66,7 @@ apexcharter - 0.1.2 + 0.1.2.900
Add data to a chart
-ax_series(ax, ...) ax_series2(ax, l)- +
A list. |
A apexcharts
htmlwidget
object.
@@ -183,9 +185,7 @@@@ -94,13 +97,15 @@Contents
diff --git a/docs/reference/ax_annotations.html b/docs/reference/ax_annotations.html index d9c863b..aafaa91 100644 --- a/docs/reference/ax_annotations.html +++ b/docs/reference/ax_annotations.html @@ -8,11 +8,13 @@Annotations properties — ax_annotations • apexcharter + + @@ -30,13 +32,14 @@ - + + @@ -63,7 +66,7 @@ apexcharter - 0.1.2 + 0.1.2.900
Annotations properties
-ax_annotations(ax, position = NULL, yaxis = NULL, xaxis = NULL, points = NULL, ...)- +
Additional parameters. |
A apexcharts
htmlwidget
object.
See https://apexcharts.com/docs/options/annotations/.
-data("economics", package = "ggplot2") @@ -274,11 +275,8 @@@@ -94,13 +97,15 @@Contents
diff --git a/docs/reference/ax_chart.html b/docs/reference/ax_chart.html index dcb18a8..a00b387 100644 --- a/docs/reference/ax_chart.html +++ b/docs/reference/ax_chart.html @@ -8,11 +8,13 @@Chart parameters — ax_chart • apexcharter + + @@ -30,13 +32,14 @@ - + + @@ -63,7 +66,7 @@ apexcharter - 0.1.2 + 0.1.2.900
Chart parameters
-ax_chart(ax, type = NULL, stacked = NULL, stackType = NULL, @@ -136,7 +139,7 @@ dropShadow = NULL, events = NULL, offsetX = NULL, offsetY = NULL, selection = NULL, sparkline = NULL, toolbar = NULL, zoom = NULL, width = NULL, height = NULL, ...)- +
Additional parameters. |
A apexcharts
htmlwidget
object.
library(dplyr) @@ -249,9 +251,7 @@@@ -94,13 +97,15 @@Contents
diff --git a/docs/reference/ax_colors.html b/docs/reference/ax_colors.html index 57013b3..edbcc3b 100644 --- a/docs/reference/ax_colors.html +++ b/docs/reference/ax_colors.html @@ -8,11 +8,13 @@Colors — ax_colors • apexcharter + + @@ -30,13 +32,14 @@ - + + @@ -63,7 +66,7 @@ apexcharter - 0.1.2 + 0.1.2.900
Colors
-ax_colors(ax, ...)- +
Colors for the chart’s series. When all colors are used, it starts from the beginning. |
A apexcharts
htmlwidget
object.
See https://apexcharts.com/docs/options/colors/
-@@ -178,11 +179,8 @@@@ -94,13 +97,15 @@Contents
diff --git a/docs/reference/ax_dataLabels.html b/docs/reference/ax_dataLabels.html index f0e9456..875f68f 100644 --- a/docs/reference/ax_dataLabels.html +++ b/docs/reference/ax_dataLabels.html @@ -8,11 +8,13 @@Labels on data — ax_dataLabels • apexcharter + + @@ -30,13 +32,14 @@ - + + @@ -63,7 +66,7 @@ apexcharter - 0.1.2 + 0.1.2.900
Labels on data
-ax_dataLabels(ax, enabled = NULL, textAnchor = NULL, offsetX = NULL, offsetY = NULL, style = NULL, dropShadow = NULL, formatter = NULL, ...)- +
A apexcharts
htmlwidget
object.
See https://apexcharts.com/docs/options/datalabels/
-library(dplyr) @@ -201,11 +202,8 @@ Accepted values@@ -94,13 +97,15 @@"start"
,"middle"
or"end"
Contents diff --git a/docs/reference/ax_fill.html b/docs/reference/ax_fill.html index ffb7906..53993d0 100644 --- a/docs/reference/ax_fill.html +++ b/docs/reference/ax_fill.html @@ -8,11 +8,13 @@Fill property — ax_fill • apexcharter + + @@ -30,13 +32,14 @@ - + + @@ -63,7 +66,7 @@ apexcharter - 0.1.2 + 0.1.2.900
Fill property
-ax_fill(ax, type = NULL, colors = NULL, opacity = NULL, gradient = NULL, image = NULL, pattern = NULL, ...)- +
Additional parameters. |
A apexcharts
htmlwidget
object.
See https://apexcharts.com/docs/options/fill/
-library(dplyr) @@ -220,11 +221,8 @@ Available options:@@ -94,13 +97,15 @@"solid"
,"gradient"
,"pattern
Contents
diff --git a/docs/reference/ax_grid.html b/docs/reference/ax_grid.html index f8eb067..df1a8fe 100644 --- a/docs/reference/ax_grid.html +++ b/docs/reference/ax_grid.html @@ -8,11 +8,13 @@Add grids on chart — ax_grid • apexcharter + + @@ -30,13 +32,14 @@ - + + @@ -63,7 +66,7 @@ apexcharter - 0.1.2 + 0.1.2.900
Add grids on chart
-ax_grid(ax, show = NULL, borderColor = NULL, strokeDashArray = NULL, position = NULL, xaxis = NULL, yaxis = NULL, row = NULL, column = NULL, padding = NULL, ...)- +
Additional parameters. |
A apexcharts
htmlwidget
object.
See https://apexcharts.com/docs/options/grid/
-library(dplyr) @@ -228,11 +229,8 @@@@ -94,13 +97,15 @@Contents
diff --git a/docs/reference/ax_labels.html b/docs/reference/ax_labels.html index 5d9f17f..2b85820 100644 --- a/docs/reference/ax_labels.html +++ b/docs/reference/ax_labels.html @@ -8,11 +8,13 @@Alternative axis labels — ax_labels • apexcharter + + @@ -30,13 +32,14 @@ - + + @@ -63,7 +66,7 @@ apexcharter - 0.1.2 + 0.1.2.900
Alternative axis labels
-ax_labels(ax, ...) ax_labels2(ax, labels)- +
A vector to use as labels. |
A apexcharts
htmlwidget
object.
See https://apexcharts.com/docs/options/labels/
-apexchart() %>% @@ -178,11 +179,8 @@ option. While, in pie/donut charts, each label corresponds to value in series ar@@ -94,13 +97,15 @@Contents
diff --git a/docs/reference/ax_labs.html b/docs/reference/ax_labs.html index b477007..df2cee7 100644 --- a/docs/reference/ax_labs.html +++ b/docs/reference/ax_labs.html @@ -8,11 +8,13 @@Modify axis, legend, and chart labels — ax_labs • apexcharter + + @@ -30,13 +32,14 @@ - + + @@ -63,7 +66,7 @@ apexcharter - 0.1.2 + 0.1.2.900
Modify axis, legend, and chart labels
-ax_labs(ax, title = NULL, subtitle = NULL, x = NULL, y = NULL)- +
Text for the y-axis label. |
meteo_paris <- data.frame( @@ -178,7 +181,6 @@@@ -94,13 +97,15 @@Contents
diff --git a/docs/reference/ax_legend.html b/docs/reference/ax_legend.html index f1d138a..d7b542a 100644 --- a/docs/reference/ax_legend.html +++ b/docs/reference/ax_legend.html @@ -8,11 +8,13 @@Legend properties — ax_legend • apexcharter + + @@ -30,13 +32,14 @@ - + + @@ -63,7 +66,7 @@ apexcharter - 0.1.2 + 0.1.2.900
Legend properties
-ax_legend(ax, show = NULL, position = NULL, @@ -138,7 +141,7 @@ formatter = NULL, labels = NULL, markers = NULL, itemMargin = NULL, containerMargin = NULL, onItemClick = NULL, onItemHover = NULL, floating = NULL, ...)- +
Additional parameters. |
A apexcharts
htmlwidget
object.
See https://apexcharts.com/docs/options/legend/
-library(dplyr) @@ -260,11 +261,8 @@ when hovered on legend item, it will highlight the paths of the hovered series i@@ -94,13 +97,15 @@Contents
diff --git a/docs/reference/ax_markers.html b/docs/reference/ax_markers.html index 14bb216..06e75d5 100644 --- a/docs/reference/ax_markers.html +++ b/docs/reference/ax_markers.html @@ -8,11 +8,13 @@Markers properties — ax_markers • apexcharter + + @@ -30,13 +32,14 @@ - + + @@ -63,7 +66,7 @@ apexcharter - 0.1.2 + 0.1.2.900
Markers properties
-ax_markers(ax, size = NULL, colors = NULL, strokeColor = NULL, strokeWidth = NULL, strokeOpacity = NULL, fillOpacity = NULL, shape = NULL, radius = NULL, offsetX = NULL, offsetY = NULL, hover = NULL, ...)- +
Additional parameters. |
A apexcharts
htmlwidget
object.
See https://apexcharts.com/docs/options/markers/
-data("economics", package = "ggplot2") @@ -217,11 +218,8 @@@@ -94,13 +97,15 @@Contents
diff --git a/docs/reference/ax_plotOptions.html b/docs/reference/ax_plotOptions.html index d472e75..6ea9853 100644 --- a/docs/reference/ax_plotOptions.html +++ b/docs/reference/ax_plotOptions.html @@ -8,11 +8,13 @@Specific options for chart — ax_plotOptions • apexcharter + + @@ -30,13 +32,14 @@ - + + @@ -63,7 +66,7 @@ apexcharter - 0.1.2 + 0.1.2.900
Specific options for chart
-ax_plotOptions(ax, bar = NULL, heatmap = NULL, radialBar = NULL, pie = NULL, ...)- +
Additional parameters. |
A apexcharts
htmlwidget
object.
library(dplyr) @@ -207,9 +209,7 @@@@ -94,13 +97,15 @@Contents
diff --git a/docs/reference/ax_proxy_options.html b/docs/reference/ax_proxy_options.html index 6a3fe9d..3e447d1 100644 --- a/docs/reference/ax_proxy_options.html +++ b/docs/reference/ax_proxy_options.html @@ -8,11 +8,13 @@Proxy for updating options — ax_proxy_options • apexcharter + + @@ -30,13 +32,14 @@ - + + @@ -63,7 +66,7 @@ apexcharter - 0.1.2 + 0.1.2.900
Allows you to update the configuration object.
-ax_proxy_options(proxy, options)- +
New options to set. |
@@ -205,7 +208,6 @@@@ -94,13 +97,15 @@Contents
diff --git a/docs/reference/ax_proxy_series.html b/docs/reference/ax_proxy_series.html index b9ee09a..f6cc72c 100644 --- a/docs/reference/ax_proxy_series.html +++ b/docs/reference/ax_proxy_series.html @@ -8,11 +8,13 @@Proxy for updating series. — ax_proxy_series • apexcharter + + @@ -30,13 +32,14 @@ - + + @@ -63,7 +66,7 @@ apexcharter - 0.1.2 + 0.1.2.900
Allows you to update the series array overriding the existing one.
-ax_proxy_series(proxy, newSeries, animate = TRUE)- +
Should the chart animate on re-rendering. |
@@ -215,7 +218,6 @@@@ -94,13 +97,15 @@Contents
diff --git a/docs/reference/ax_responsive.html b/docs/reference/ax_responsive.html index f4bebac..3b2ec95 100644 --- a/docs/reference/ax_responsive.html +++ b/docs/reference/ax_responsive.html @@ -8,11 +8,13 @@Responsive options — ax_responsive • apexcharter + + @@ -30,13 +32,14 @@ - + + @@ -63,7 +66,7 @@ apexcharter - 0.1.2 + 0.1.2.900
Responsive options
-ax_responsive(ax, ...)- +
Additional parameters. |
A apexcharts
htmlwidget
object.
See https://apexcharts.com/docs/options/responsive/
-library(dplyr) @@ -186,11 +187,8 @@@@ -94,13 +97,15 @@Contents
diff --git a/docs/reference/ax_states.html b/docs/reference/ax_states.html index 41836e8..97d155b 100644 --- a/docs/reference/ax_states.html +++ b/docs/reference/ax_states.html @@ -8,11 +8,13 @@Charts' states — ax_states • apexcharter + + @@ -30,13 +32,14 @@ - + + @@ -63,7 +66,7 @@ apexcharter - 0.1.2 + 0.1.2.900
Charts' states
-ax_states(ax, normal = NULL, hover = NULL, active = NULL, ...)- +
Additional parameters. |
A apexcharts
htmlwidget
object.
See https://apexcharts.com/docs/options/states/
-library(dplyr) @@ -189,11 +190,8 @@@@ -94,13 +97,15 @@Contents
diff --git a/docs/reference/ax_stroke.html b/docs/reference/ax_stroke.html index c25e8d7..2b9ed6b 100644 --- a/docs/reference/ax_stroke.html +++ b/docs/reference/ax_stroke.html @@ -8,11 +8,13 @@Stroke properties — ax_stroke • apexcharter + + @@ -30,13 +32,14 @@ - + + @@ -63,7 +66,7 @@ apexcharter - 0.1.2 + 0.1.2.900
Stroke properties
-ax_stroke(ax, show = NULL, curve = NULL, lineCap = NULL, width = NULL, colors = NULL, dashArray = NULL, ...)- +
Additional parameters. |
A apexcharts
htmlwidget
object.
See https://apexcharts.com/docs/options/stroke/
-data("economics", package = "ggplot2") @@ -212,11 +213,8 @@ and@@ -94,13 +97,15 @@"straight"
(connect the points in straight lines.).Contents
diff --git a/docs/reference/ax_subtitle.html b/docs/reference/ax_subtitle.html index f7f530c..6d5329a 100644 --- a/docs/reference/ax_subtitle.html +++ b/docs/reference/ax_subtitle.html @@ -8,11 +8,13 @@Chart's subtitle — ax_subtitle • apexcharter + + @@ -30,13 +32,14 @@ - + + @@ -63,7 +66,7 @@ apexcharter - 0.1.2 + 0.1.2.900
Chart's subtitle
-ax_subtitle(ax, text = NULL, align = NULL, margin = NULL, offsetX = NULL, offsetY = NULL, floating = NULL, style = NULL, ...)- +
Additional parameters. |
A apexcharts
htmlwidget
object.
See https://apexcharts.com/docs/options/subtitle/
-data("economics", package = "ggplot2") @@ -203,11 +204,8 @@@@ -94,13 +97,15 @@Contents
diff --git a/docs/reference/ax_theme.html b/docs/reference/ax_theme.html index b7b46de..68e728d 100644 --- a/docs/reference/ax_theme.html +++ b/docs/reference/ax_theme.html @@ -8,11 +8,13 @@Theme for charts — ax_theme • apexcharter + + @@ -30,13 +32,14 @@ - + + @@ -63,7 +66,7 @@ apexcharter - 0.1.2 + 0.1.2.900
Theme for charts
-ax_theme(ax, mode = c("light", "dark"), palette = NULL, monochrome = NULL, ...)- +
Additional parameters. |
A apexcharts
htmlwidget
object.
See https://apexcharts.com/docs/options/theme/
-library(dplyr) @@ -198,11 +199,8 @@@@ -94,13 +97,15 @@Contents
diff --git a/docs/reference/ax_title.html b/docs/reference/ax_title.html index aabfa4c..222d8a4 100644 --- a/docs/reference/ax_title.html +++ b/docs/reference/ax_title.html @@ -8,11 +8,13 @@Chart's title — ax_title • apexcharter + + @@ -30,13 +32,14 @@ - + + @@ -63,7 +66,7 @@ apexcharter - 0.1.2 + 0.1.2.900
Chart's title
-ax_title(ax, text = NULL, align = NULL, margin = NULL, offsetX = NULL, offsetY = NULL, floating = NULL, style = NULL, ...)- +
Additional parameters. |
A apexcharts
htmlwidget
object.
See https://apexcharts.com/docs/options/title/
-data("economics", package = "ggplot2") @@ -200,11 +201,8 @@@@ -94,13 +97,15 @@Contents
diff --git a/docs/reference/ax_tooltip.html b/docs/reference/ax_tooltip.html index 5562954..69b8265 100644 --- a/docs/reference/ax_tooltip.html +++ b/docs/reference/ax_tooltip.html @@ -8,11 +8,13 @@Tooltip options — ax_tooltip • apexcharter + + @@ -30,13 +32,14 @@ - + + @@ -63,7 +66,7 @@ apexcharter - 0.1.2 + 0.1.2.900
Tooltip options
-ax_tooltip(ax, enabled = NULL, shared = NULL, followCursor = NULL, @@ -136,7 +139,7 @@ fillSeriesColor = NULL, onDatasetHover = NULL, theme = NULL, x = NULL, y = NULL, z = NULL, marker = NULL, items = NULL, fixed = NULL, ...)- +
Additional parameters. |
A apexcharts
htmlwidget
object.
See https://apexcharts.com/docs/options/tooltip/
-library(dplyr) @@ -252,11 +253,8 @@@@ -94,13 +97,15 @@Contents
diff --git a/docs/reference/ax_xaxis.html b/docs/reference/ax_xaxis.html index ea2cf44..6206b3b 100644 --- a/docs/reference/ax_xaxis.html +++ b/docs/reference/ax_xaxis.html @@ -8,11 +8,13 @@X-axis options — ax_xaxis • apexcharter + + @@ -30,13 +32,14 @@ - + + @@ -63,7 +66,7 @@ apexcharter - 0.1.2 + 0.1.2.900
X-axis options
-ax_xaxis(ax, type = NULL, categories = NULL, labels = NULL, @@ -136,7 +139,7 @@ min = NULL, max = NULL, range = NULL, floating = NULL, position = NULL, title = NULL, crosshairs = NULL, tooltip = NULL, ...)- +
Additional parameters. |
A apexcharts
htmlwidget
object.
See https://apexcharts.com/docs/options/xaxis/
-library(dplyr) @@ -281,11 +282,8 @@ similar to an absolutely positioned element. Set the offsetX and offsetY then to@@ -94,13 +97,15 @@Contents
diff --git a/docs/reference/ax_yaxis.html b/docs/reference/ax_yaxis.html index 9fc19b4..eabfd18 100644 --- a/docs/reference/ax_yaxis.html +++ b/docs/reference/ax_yaxis.html @@ -8,11 +8,13 @@Y-axis options — ax_yaxis • apexcharter + + @@ -30,13 +32,14 @@ - + + @@ -63,7 +66,7 @@ apexcharter - 0.1.2 + 0.1.2.900
Y-axis options
-ax_yaxis(ax, opposite = NULL, tickAmount = NULL, max = NULL, min = NULL, floating = NULL, labels = NULL, axisBorder = NULL, axisTicks = NULL, title = NULL, tooltip = NULL, crosshairs = NULL, ...)- +
Additional parameters. |
A apexcharts
htmlwidget
object.
See https://apexcharts.com/docs/options/yaxis/
-data("economics_long", package = "ggplot2") @@ -230,11 +231,8 @@ similar to an absolutely positioned element. Set the offsetX and offsetY then to@@ -94,13 +97,15 @@Contents
diff --git a/docs/reference/ax_yaxis2.html b/docs/reference/ax_yaxis2.html index 9a2210c..dee1e0f 100644 --- a/docs/reference/ax_yaxis2.html +++ b/docs/reference/ax_yaxis2.html @@ -8,11 +8,13 @@Secondary Y-axis options — ax_yaxis2 • apexcharter + + @@ -30,13 +32,14 @@ - + + @@ -63,7 +66,7 @@ apexcharter - 0.1.2 + 0.1.2.900
Secondary Y-axis options
-ax_yaxis2(ax, ...)- +
See arguments from |
A apexcharts
htmlwidget
object.
@@ -168,9 +170,7 @@@@ -94,13 +97,15 @@Contents
diff --git a/docs/reference/bar_opts.html b/docs/reference/bar_opts.html index 64f1586..8c2d6bd 100644 --- a/docs/reference/bar_opts.html +++ b/docs/reference/bar_opts.html @@ -8,11 +8,13 @@Bar options — bar_opts • apexcharter + + @@ -30,13 +32,14 @@ - + + @@ -63,7 +66,7 @@ apexcharter - 0.1.2 + 0.1.2.900
Use these options in ax_plotOptions
.
bar_opts(horizontal = NULL, endingShape = NULL, columnWidth = NULL, barHeight = NULL, distributed = NULL, colors = NULL, dataLabels = NULL, ...)- +
Additional parameters. |
A list
of options that can be used in ax_plotOptions
.
See https://apexcharts.com/docs/options/plotoptions/bar/.
-@@ -199,11 +200,8 @@@@ -94,13 +97,15 @@Contents
diff --git a/docs/reference/events_opts.html b/docs/reference/events_opts.html index f550248..3e6c094 100644 --- a/docs/reference/events_opts.html +++ b/docs/reference/events_opts.html @@ -8,11 +8,13 @@Events options — events_opts • apexcharter + + @@ -30,13 +32,14 @@ - + + @@ -63,7 +66,7 @@ apexcharter - 0.1.2 + 0.1.2.900
Events options
-events_opts(click = NULL, beforeMount = NULL, mounted = NULL, @@ -136,7 +139,7 @@ dataPointSelection = NULL, dataPointMouseEnter = NULL, dataPointMouseLeave = NULL, beforeZoom = NULL, zoomed = NULL, scrolled = NULL, ...)- +
Additional parameters. |
A list
of options that can be used in ax_chart
.
All arguments should be JavaScript function defined with htmlwidgets::JS
.
See https://apexcharts.com/docs/options/chart/events/.
-@@ -257,11 +258,8 @@@@ -94,13 +97,15 @@Contents
diff --git a/docs/reference/heatmap_opts.html b/docs/reference/heatmap_opts.html index 8c26277..a8e7295 100644 --- a/docs/reference/heatmap_opts.html +++ b/docs/reference/heatmap_opts.html @@ -8,11 +8,13 @@Heatmap options — heatmap_opts • apexcharter + + @@ -30,13 +32,14 @@ - + + @@ -63,7 +66,7 @@ apexcharter - 0.1.2 + 0.1.2.900
Use these options in ax_plotOptions
.
heatmap_opts(radius = NULL, enableShades = NULL, shadeIntensity = NULL, colorScale = NULL, ...)- +
Additional parameters. |
A list
of options that can be used in ax_plotOptions
.
See https://apexcharts.com/docs/options/plotoptions/heatmap/.
-@@ -197,11 +198,8 @@@@ -91,13 +95,15 @@Contents
diff --git a/docs/reference/index.html b/docs/reference/index.html index a627dd3..0eb17d6 100644 --- a/docs/reference/index.html +++ b/docs/reference/index.html @@ -8,11 +8,13 @@Function reference • apexcharter + + @@ -30,10 +32,12 @@ + + @@ -60,7 +64,7 @@ apexcharter - 0.1.2 + 0.1.2.900
UNHCR data for 2017
UNHCR data by continent of origin
data.frame
to a list
— parse_df • apexcharterConvert data to a format suitable for ApexCharts.js
-parse_df(data, add_names = FALSE)- +
A list
that can be used to specify data in ax_series
for example.
@@ -5114,9 +5116,7 @@ reuse@@ -94,13 +97,15 @@data
names or a character vector of new names.Contents
diff --git a/docs/reference/pie_opts.html b/docs/reference/pie_opts.html index 20bb356..f9b84b2 100644 --- a/docs/reference/pie_opts.html +++ b/docs/reference/pie_opts.html @@ -8,11 +8,13 @@Pie options — pie_opts • apexcharter + + @@ -30,13 +32,14 @@ - + + @@ -63,7 +66,7 @@ apexcharter - 0.1.2 + 0.1.2.900
Use these options in ax_plotOptions
.
pie_opts(size = NULL, donut = NULL, customScale = NULL, offsetX = NULL, offsetY = NULL, dataLabels = NULL, ...)- +
Additional parameters. |
A list
of options that can be used in ax_plotOptions
.
See https://apexcharts.com/docs/options/plotoptions/pie/.
-@@ -193,11 +194,8 @@ and@@ -94,13 +97,15 @@background
(The background color of the pie).Contents
diff --git a/docs/reference/radialBar_opts.html b/docs/reference/radialBar_opts.html index e4bea24..eedfa9f 100644 --- a/docs/reference/radialBar_opts.html +++ b/docs/reference/radialBar_opts.html @@ -8,11 +8,13 @@Radial bar options — radialBar_opts • apexcharter + + @@ -30,13 +32,14 @@ - + + @@ -63,7 +66,7 @@ apexcharter - 0.1.2 + 0.1.2.900
Use these options in ax_plotOptions
.
radialBar_opts(size = NULL, inverseOrder = NULL, startAngle = NULL, endAngle = NULL, offsetX = NULL, offsetY = NULL, hollow = NULL, track = NULL, dataLabels = NULL, ...)- +
Additional parameters. |
A list
of options that can be used in ax_plotOptions
.
See https://apexcharts.com/docs/options/plotoptions/radialbar/.
-apexchart() %>% @@ -219,11 +220,8 @@@@ -94,13 +97,15 @@Contents
diff --git a/docs/reference/unhcr_popstats_2017.html b/docs/reference/unhcr_popstats_2017.html index 540e239..b1e4476 100644 --- a/docs/reference/unhcr_popstats_2017.html +++ b/docs/reference/unhcr_popstats_2017.html @@ -8,11 +8,13 @@UNHCR data for 2017 — unhcr_popstats_2017 • apexcharter + + @@ -30,13 +32,14 @@ - + + @@ -63,7 +66,7 @@ apexcharter - 0.1.2 + 0.1.2.900
The dataset contains data about UNHCR's populations of concern for the year 2017.
-unhcr_popstats_2017
-
+
+
A data frame with 11237 observations on the following 6 variables.
continent_residence
Continent of origin of population
continent_origin
Continent of residence of population
UNHCR (The UN Refugee Agency) (http://popstats.unhcr.org/en/overview)
- diff --git a/docs/reference/unhcr_ts.html b/docs/reference/unhcr_ts.html new file mode 100644 index 0000000..6af57bc --- /dev/null +++ b/docs/reference/unhcr_ts.html @@ -0,0 +1,179 @@ + + + + + + + + +The dataset contains data about UNHCR's populations of concern summarised by continent of orginin.
+unhcr_ts
+
+
+ A data frame with 913 observations on the following 4 variables.
year
Year concerned.
population_type
Populations of concern : Refugees, Asylum-seekers, Internally displaced persons (IDPs), Returned refugees, + Returned IDPs, Stateless persons, Others of concern.
continent_origin
Continent of residence of population.
n
Number of people concerned.
UNHCR (The UN Refugee Agency) (http://popstats.unhcr.org/en/overview)
+ +