You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#' @param df A data.frame to be used as dataset in the chart, default NULL
8
-
#' @param load Name(s) of plugin(s) to load. Currently supported are
9
-
#' \emph{3D, GL, leaflet, custom}. Could be a vector or comma-delimited string. default NULL.
10
-
#' @param preset Enable (TRUE, default) or disable(FALSE) presets like xAxis,yAxis,dataset,series, but not \code{group1}.
11
-
#' @param group1 Preset parameters if df is grouped, default TRUE \cr
7
+
#' @param df A data.frame to be preset as \href{https://echarts.apache.org/en/option.html#dataset}{dataset}, default NULL
8
+
#' @param group1 Type of grouped series, default 'scatter'. Set to NULL to disable. \cr
12
9
#' If the grouping is on multiple columns, only the first one is used.
10
+
#' @param preset Enable (TRUE, default) or disable(FALSE) presets xAxis, yAxis and first serie.
11
+
#' @param load Name(s) of plugin(s) to load. Could be a character vector or comma-delimited string. default NULL.\cr
12
+
#' Built-in plugins: \cr \itemize{
13
+
#' \item leaflet - Leaflet maps with customizable tiles, see \href{https://github.com/gnijuohz/echarts-leaflet#readme}{source}\cr
14
+
#' \item custom - renderers for [ec.band] and ec.ebars \cr
15
+
#' } Plugins with one-time installation (popup prompt): \cr \itemize{
16
+
#' \item 3D - 3D charts and WebGL acceleration, see \href{https://github.com/ecomfe/echarts-gl}{source} and \href{https://echarts.apache.org/en/option-gl.html#series}{docs} \cr
17
+
#' \item world - world map with country boundaries, see \href{https://github.com/apache/echarts/tree/master/test/data/map/js}{source} \cr
18
+
#' \item liquid - liquid fill, see \href{https://github.com/ecomfe/echarts-liquidfill}{source} \cr
19
+
#' \item gmodular - graph modularity, see \href{https://github.com/ecomfe/echarts-graph-modularity}{source} \cr
20
+
#' \item wordcloud - cloud of words, see \href{https://github.com/ecomfe/echarts-wordcloud}{source} \cr
21
+
#' } Install you own plugins with [ec.plugjs].
13
22
#' @param width,height A valid CSS unit (like \code{'100\%'},
14
23
#' \code{'500px'}, \code{'auto'}) or a number, which will be coerced to a
15
24
#' string and have \code{'px'} appended.
@@ -21,24 +30,24 @@
21
30
#'
22
31
#' @details Widgets are defined in \href{https://www.htmlwidgets.org/develop_intro.html}{htmlwidgets}.
23
32
#' This command creates one with \code{\link[htmlwidgets]{createWidget}}, then adds some EchartsJS features to it.\cr
24
-
#' It also presets values for xAxis,yAxis,dataset and series. The user can overwrite them if needed.
33
+
#' It may preset values for xAxis,yAxis,series and dataset, which user can overwrite if needed.
25
34
#'
26
35
#' @examples
27
36
#' # basic scatter chart from a data.frame, using presets
#' @param wt A widget to add dependency to, see \code{\link[htmlwidgets]{createWidget}}
199
+
#' @param source URL of the uninstalled Javascript plugin, \cr
200
+
#' or name of an installed plugin file, suffix .js included. Default is NULL.
201
+
#' @return A widget with JS dependency added if successful, otherwise input wt
202
+
#'
203
+
#' @details When \emph{source} is URL, the plugin file is installed with a popup prompt to the user.\cr
204
+
#' When \emph{source} is just a file name (xxx.js), it is assumed installed and only a dependency is added. The latter option is for internal usage by echarty.
205
+
#'
206
+
#' @examples
207
+
#' # import map plugin and display two (lon,lat) locations
0 commit comments