From 296797c353ffe6bd3e5f6815cf7b53d3085547ee Mon Sep 17 00:00:00 2001 From: pvictor Date: Tue, 23 Jun 2020 10:49:20 +0200 Subject: [PATCH] rebuilt pkgdown --- docs/articles/apexcharter.html | 70 +++++++++--------- .../articles/advanced-configuration.html | 16 ++--- docs/articles/chart-options.html | 72 +++++++++---------- docs/articles/shiny-integration.html | 24 +++---- docs/articles/spark-box.html | 8 +-- docs/articles/sync-charts.html | 12 ++-- docs/pkgdown.yml | 2 +- 7 files changed, 102 insertions(+), 102 deletions(-) diff --git a/docs/articles/apexcharter.html b/docs/articles/apexcharter.html index 0535c8c..444d93d 100644 --- a/docs/articles/apexcharter.html +++ b/docs/articles/apexcharter.html @@ -158,7 +158,7 @@

Starting with ApexCharts

Victor Perrier

-

2020-06-13

+

2020-06-23

Source: vignettes/apexcharter.Rmd @@ -181,20 +181,20 @@ n_manufac <- count(mpg, manufacturer) apex(data = n_manufac, type = "column", mapping = aes(x = manufacturer, y = n)) -
-

Flipping coordinates can be done by using type = "bar":

+
+

Flipping coordinates can be done by using type = "bar":

apex(data = n_manufac, type = "bar", mapping = aes(x = manufacturer, y = n))
-
-

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 :

apex(data = n_manufac_year, type = "column", mapping = aes(x = manufacturer, y = n, fill = year)) %>%
   ax_chart(stacked = TRUE)
-
- +
+

@@ -204,8 +204,8 @@ economics <- tail(economics, 100) apex(data = economics, type = "line", mapping = aes(x = date, y = uempmed))

-
-

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) %>%
@@ -213,28 +213,28 @@
 
 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":

apex(data = economics_long, type = "area", mapping = aes(x = date, y = value01, fill = variable)) %>%
   ax_yaxis(decimalsInFloat = 2) %>% # number of decimals to keep
   ax_chart(stacked = TRUE) %>%
   ax_yaxis(max = 4, tickAmount = 4)
-
- +
+

Scatter charts

Simple bar charts can be created with:

apex(data = mtcars, type = "scatter", mapping = aes(x = wt, y = mpg))
-
-

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))
-
-

And change point size using z aesthetics:

+
+

And change point size using z aesthetics:

apex(data = mtcars, type = "scatter", mapping = aes(x = wt, y = mpg, z = scales::rescale(qsec)))
-
- +
+

@@ -246,24 +246,24 @@ ) apex(data = poll, type = "pie", mapping = aes(x = answer, y = n))

-
- +
+

Radial charts

Simple radial charts can be created with (here we pass values directly in aes, but you can use a data.frame) :

apex(data = NULL, type = "radialBar", mapping = aes(x = "My value", y = 65))
-
-

Multi radial chart (more than one value):

+
+

Multi radial chart (more than one value):

fruits <- data.frame(
   name = c('Apples', 'Oranges', 'Bananas', 'Berries'),
   value = c(44, 55, 67, 83)
 )
 
 apex(data = fruits, type = "radialBar", mapping = aes(x = name, y = value))
-
- +
+

@@ -272,8 +272,8 @@
mtcars$model <- rownames(mtcars)
 
 apex(data = head(mtcars), type = "radar", mapping = aes(x = model, y = qsec))
-
-

With a grouping variable:

+
+

With a grouping variable:

# extremely complicated reshaping
 new_mtcars <- reshape(
   data = head(mtcars),
@@ -286,8 +286,8 @@
 )
 
 apex(data = new_mtcars, type = "radar", mapping = aes(x = model, y = value, group = time))
-
- +
+

@@ -304,8 +304,8 @@ ) %>% ax_dataLabels(enabled = FALSE) %>% ax_colors("#008FFB")

-
- +
+

@@ -316,8 +316,8 @@ aes(x = datetime, open = open, close = close, low = low, high = high), type = "candlestick" )

-
- +
+ diff --git a/docs/articles/articles/advanced-configuration.html b/docs/articles/articles/advanced-configuration.html index 8b5de38..c62dea1 100644 --- a/docs/articles/articles/advanced-configuration.html +++ b/docs/articles/articles/advanced-configuration.html @@ -219,8 +219,8 @@ )

Final result looks like :

bars
-
-

View full code

+
+

View full code

data("mpg", package = "ggplot2")
 
 count(mpg, class) %>%
@@ -328,8 +328,8 @@
   )

Final result looks like :

lines
-
-

View full code

+
+

View full code

data("unhcr_ts")
 
 unhcr_ts %>%
@@ -490,8 +490,8 @@
   )

Final result looks like :

scatter
-
-

View full code

+
+

View full code

data("gapminder", package = "gapminder")
 
 gapminder %>%
@@ -696,8 +696,8 @@
   )

Final result looks like :

heatmap
-
-

View full code

+
+

View full code

data("vaccines", package = "highcharter")
 
 apex(vaccines, aes(year, state, fill = count), type = "heatmap") %>%
diff --git a/docs/articles/chart-options.html b/docs/articles/chart-options.html
index f661f4c..47a7a59 100644
--- a/docs/articles/chart-options.html
+++ b/docs/articles/chart-options.html
@@ -185,24 +185,24 @@
     x = "Cut",
     y = "Count"
   )
-
-

If you more control (font size, alignment, …), you can use ax_title(), ax_subtitle(), ax_xaxis() and ax_yaxis(), as described below.

+
+

If you more control (font size, alignment, …), you can use ax_title(), ax_subtitle(), ax_xaxis() and ax_yaxis(), as described below.

Title

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", fontWeight = 700)
   )
-
-

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/

@@ -210,8 +210,8 @@
apex(data = n_cut, type = "column", mapping = aes(x = cut, y = n)) %>%
   ax_title(text = "Cut distribution") %>%
   ax_subtitle(text = "Data from ggplot2")
-
-

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",
@@ -223,8 +223,8 @@
     align = "center",
     style = list(fontSize = "16px", fontWeight = 400, 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/

@@ -232,8 +232,8 @@
apex(data = n_cut, type = "column", mapping = aes(x = cut, y = n)) %>%
   ax_yaxis(title = list(text = "Count")) %>%
   ax_xaxis(title = list(text = "Cut"))
-
-

With some options:

+
+

With some options:

apex(data = n_cut, type = "column", mapping = aes(x = cut, y = n)) %>%
   ax_yaxis(title = list(
     text = "Count",
@@ -243,8 +243,8 @@
     text = "Cut",
     style = list(fontSize = "14px", color = "#BDBDBD")
   ))
-
- +
+

@@ -267,16 +267,16 @@ Type of line

Classic line:

apex(data = economics, type = "line", mapping = aes(x = date, y = uempmed))
-
-

Spline curve:

+
+

Spline curve:

apex(data = economics, type = "line", mapping = aes(x = date, y = uempmed)) %>%
   ax_stroke(curve = "smooth")
-
-

Steps chart:

+
+

Steps chart:

apex(data = economics, type = "line", mapping = aes(x = date, y = uempmed)) %>%
   ax_stroke(curve = "stepline")
-
- +
+

@@ -295,20 +295,20 @@ stops = c(0, 100, 100, 100) ) )

-
-

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

apex(data = economics, type = "line", mapping = aes(x = date, y = uempmed)) %>%
   ax_stroke(dashArray = 6)
-
- +
+

@@ -316,13 +316,13 @@

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

apex(data = tail(economics, 20), type = "line", mapping = aes(x = date, y = uempmed)) %>%
   ax_markers(size = 6) %>%
   ax_dataLabels(enabled = TRUE)
-
- +
+

@@ -332,12 +332,12 @@ ax_yaxis(decimalsInFloat = 2) %>% ax_markers(size = c(3, 6)) %>% ax_stroke(width = c(1, 3))

-
-
apex(data = economics_long, type = "line", mapping = aes(x = date, y = value01, group = variable)) %>%
+
+
apex(data = economics_long, type = "line", mapping = aes(x = date, y = value01, group = variable)) %>%
   ax_yaxis(decimalsInFloat = 2) %>%
   ax_stroke(dashArray = c(8, 5))
-
- +
+
diff --git a/docs/articles/shiny-integration.html b/docs/articles/shiny-integration.html index c921214..783f3a9 100644 --- a/docs/articles/shiny-integration.html +++ b/docs/articles/shiny-integration.html @@ -221,8 +221,8 @@ apex(aes(month, value), height = "250px") %>% ax_title("Click a bar:") %>% set_input_click("click") -
-

Value server-side will be available through input$click.

+
+

Value server-side will be available through input$click.

Depending on the type of graphic, you can retrieve :

  • @@ -246,8 +246,8 @@ multiple = TRUE, effect_value = 0.1 ) -
    -

    More examples are available with:

    +
    +

    More examples are available with:

    @@ -257,8 +257,8 @@
    data("economics", package = "ggplot2")
     apex(economics, aes(date, psavert), type = "line", height = "250px") %>%
       set_input_zoom("zoom")
    -
    -

    Value server-side will be available through input$zoom under the form :

    +
    +

    Value server-side will be available through input$zoom under the form :

    #> $x
     #> $x$min
     #> [1] "1981-10-24 15:41:16 UTC"
    @@ -283,8 +283,8 @@
     

    Retrieve the coordinates of the axes when user select an area on a chart (without zooming):

    apex(economics, aes(date, psavert), type = "line", height = "250px") %>%
       set_input_selection("selection")
    -
    -

    Value server-side will be available through input$selection under the form :

    +
    +

    Value server-side will be available through input$selection under the form :

    #> $x
     #> $x$min
     #> [1] "1981-10-24 15:41:16 UTC"
    @@ -298,12 +298,12 @@
         xmin = format_date("1980-01-01"),
         xmax = format_date("1985-01-01")
       )
    -
    -

    Above selection is only made possible on x-axis, but in case of scatter chart for example, you can select a rectangle (both axis):

    +
    +

    Above selection is only made possible on x-axis, but in case of scatter chart for example, you can select a rectangle (both axis):

    apex(iris, aes(Sepal.Length, Sepal.Width), type = "scatter", height = "250px") %>%
       set_input_selection("selection_scatter", type = "xy")
    -
    -

    In this case, input value will look like this:

    +
    +

    In this case, input value will look like this:

    #> $x
     #> $x$min
     #> [1] 5.130187
    diff --git a/docs/articles/spark-box.html b/docs/articles/spark-box.html
    index c518ac3..5f4be6f 100644
    --- a/docs/articles/spark-box.html
    +++ b/docs/articles/spark-box.html
    @@ -179,8 +179,8 @@
       title = mean(spark_data$var1),
       subtitle = "Variable 1"
     )
    -
    -

    With more styles :

    +
    +

    With more styles :

    spark_box(
       data = spark_data,
       title = mean(spark_data$var1),
    @@ -189,8 +189,8 @@
       title_style = list(color = "#FFF"),
       subtitle_style = list(color = "#FFF")
     )
    -
    -

    You can also use spark boxes in Shiny application, use code to launch an example :

    +
    +

    You can also use spark boxes in Shiny application, use code to launch an example :

    spark-box

    diff --git a/docs/articles/sync-charts.html b/docs/articles/sync-charts.html index d3240cc..6147528 100644 --- a/docs/articles/sync-charts.html +++ b/docs/articles/sync-charts.html @@ -185,9 +185,9 @@ synchronize = "economics" )

    -
    -
    -

    For an example in Shiny, you can run:

    +
    +
    +

    For an example in Shiny, you can run:

    @@ -230,9 +230,9 @@ ax_xaxis(labels = list(show = FALSE)) %>% ax_yaxis(labels = list(show = FALSE))

    -
    -
    - +
    +
    + diff --git a/docs/pkgdown.yml b/docs/pkgdown.yml index 86da76c..4bcf167 100644 --- a/docs/pkgdown.yml +++ b/docs/pkgdown.yml @@ -8,5 +8,5 @@ articles: shiny-integration: shiny-integration.html spark-box: spark-box.html sync-charts: sync-charts.html -last_built: 2020-06-13T11:04Z +last_built: 2020-06-23T08:42Z