2021-12-10 17:17:40 +01:00
<!DOCTYPE html>
2023-08-23 10:16:59 +02:00
<!-- Generated by pkgdown: do not edit by hand --> < html lang = "en" > < head > < meta http-equiv = "Content-Type" content = "text/html; charset=UTF-8" > < meta charset = "utf-8" > < meta http-equiv = "X-UA-Compatible" content = "IE=edge" > < meta name = "viewport" content = "width=device-width, initial-scale=1, shrink-to-fit=no" > < meta name = "description" content = "Set specific color's series" > < title > Set specific color's series — ax_colors_manual • apexcharter< / title > < script src = "../deps/jquery-3.6.0/jquery-3.6.0.min.js" > < / script > < meta name = "viewport" content = "width=device-width, initial-scale=1, shrink-to-fit=no" > < link href = "../deps/bootstrap-5.2.2/bootstrap.min.css" rel = "stylesheet" > < script src = "../deps/bootstrap-5.2.2/bootstrap.bundle.min.js" > < / script > < link href = "../deps/Poppins-0.4.7/font.css" rel = "stylesheet" > <!-- Font Awesome icons --> < link rel = "stylesheet" href = "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity = "sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin = "anonymous" > < link rel = "stylesheet" href = "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity = "sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin = "anonymous" > <!-- bootstrap - toc --> < script src = "https://cdn.jsdelivr.net/gh/afeld/bootstrap-toc@v1.0.1/dist/bootstrap-toc.min.js" integrity = "sha256-4veVQbu7//Lk5TSmc7YV48MxtMy98e26cf5MrgZYnwo=" crossorigin = "anonymous" > < / script > <!-- headroom.js --> < script src = "https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity = "sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin = "anonymous" > < / script > < script src = "https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity = "sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin = "anonymous" > < / script > <!-- clipboard.js --> < script src = "https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity = "sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin = "anonymous" > < / script > <!-- search --> < script src = "https://cdnjs.cloudflare.com/ajax/libs/fuse.js/6.4.6/fuse.js" integrity = "sha512-zv6Ywkjyktsohkbp9bb45V6tEMoWhzFzXis+LrMehmJZZSys19Yxf1dopHx7WzIKxr5tK2dVcYmaCk2uqdjF4A==" crossorigin = "anonymous" > < / script > < script src = "https://cdnjs.cloudflare.com/ajax/libs/autocomplete.js/0.38.0/autocomplete.jquery.min.js" integrity = "sha512-GU9ayf+66Xx2TmpxqJpliWbT5PiGYxpaG8rfnBEk1LL8l1KGkRShhngwdXK1UgqhAzWpZHSiYPc09/NwDQIGyg==" crossorigin = "anonymous" > < / script > < script src = "https://cdnjs.cloudflare.com/ajax/libs/mark.js/8.11.1/mark.min.js" integrity = "sha512-5CYOlHXGh6QpOFA/TeTylKLWfB3ftPsde7AnmhuitiTX4K5SqCLBeKro6sPS8ilsz1Q4NRx3v8Ko2IBiszzdww==" crossorigin = "anonymous" > < / script > <!-- pkgdown --> < script src = "../pkgdown.js" > < / script > < meta property = "og:title" content = "Set specific color's series — ax_colors_manual" > < meta property = "og:description" content = "Set specific color's series" > <!-- mathjax --> < script src = "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity = "sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin = "anonymous" > < / script > < script src = "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity = "sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin = "anonymous" > < / script > <!-- [if lt IE 9]>
2021-12-10 17:17:40 +01:00
< script src = "https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js" > < / script >
< script src = "https://oss.maxcdn.com/respond/1.4.2/respond.min.js" > < / script >
2023-08-23 10:16:59 +02:00
<![endif]--> <!-- dependencies from examples --> < script src = "libs/htmlwidgets-1.6.2/htmlwidgets.js" > < / script > < script src = "libs/apexcharter-binding-0.4.1.9000/apexcharter.js" > < / script > < / head > < body >
2021-12-10 17:17:40 +01:00
< a href = "#main" class = "visually-hidden-focusable" > Skip to contents< / a >
< nav class = "navbar fixed-top navbar-dark navbar-expand-lg bg-primary" > < div class = "container" >
< a class = "navbar-brand me-2" href = "../index.html" > apexcharter< / a >
2023-08-23 10:16:59 +02:00
< small class = "nav-text text-muted me-auto" data-bs-toggle = "tooltip" data-bs-placement = "bottom" title = "" > 0.4.1.9000< / small >
2021-12-10 17:17:40 +01:00
< button class = "navbar-toggler" type = "button" data-bs-toggle = "collapse" data-bs-target = "#navbar" aria-controls = "navbar" aria-expanded = "false" aria-label = "Toggle navigation" >
< span class = "navbar-toggler-icon" > < / span >
< / button >
2022-02-27 17:23:59 +01:00
< div id = "navbar" class = "collapse navbar-collapse ms-3" >
2021-12-10 17:17:40 +01:00
< ul class = "navbar-nav me-auto" > < li class = "nav-item" >
< a class = "nav-link" href = "../articles/apexcharter.html" > Get started< / a >
< / li >
< li class = "active nav-item" >
< a class = "nav-link" href = "../reference/index.html" > Reference< / a >
< / li >
< li class = "nav-item dropdown" >
< a href = "#" class = "nav-link dropdown-toggle" data-bs-toggle = "dropdown" role = "button" aria-expanded = "false" aria-haspopup = "true" id = "dropdown-articles" > Articles< / a >
< div class = "dropdown-menu" aria-labelledby = "dropdown-articles" >
< a class = "dropdown-item" href = "../articles/extra/advanced-configuration.html" > Advanced configuration examples< / a >
< a class = "dropdown-item" href = "../articles/extra/chart-options.html" > Customize chart options< / a >
< a class = "dropdown-item" href = "../articles/extra/facets.html" > Create grid of charts< / a >
< a class = "dropdown-item" href = "../articles/extra/shiny-integration.html" > Use in Shiny application< / a >
< a class = "dropdown-item" href = "../articles/extra/spark-box.html" > Create boxes with sparklines< / a >
< a class = "dropdown-item" href = "../articles/extra/sync-charts.html" > Synchronize charts with each other< / a >
< / div >
< / li >
< li class = "nav-item" >
< a class = "nav-link" href = "../news/index.html" > Changelog< / a >
< / li >
< / ul > < form class = "form-inline my-2 my-lg-0" role = "search" >
< input type = "search" class = "form-control me-sm-2" aria-label = "Toggle navigation" name = "search-input" data-search-index = "../search.json" id = "search-input" placeholder = "Search for" autocomplete = "off" > < / form >
< ul class = "navbar-nav" > < li class = "nav-item" >
< a class = "external-link nav-link" href = "https://github.com/dreamRs/apexcharter/" aria-label = "github" >
< span class = "fab fa fab fa-github fa-lg" > < / span >
< / a >
< / li >
< / ul > < / div >
< / div >
< / nav > < div class = "container template-reference-topic" >
< div class = "row" >
< main id = "main" class = "col-md-9" > < div class = "page-header" >
< img src = "" class = "logo" alt = "" > < h1 > Set specific color's series< / h1 >
< small class = "dont-index" > Source: < a href = "https://github.com/dreamRs/apexcharter/blob/HEAD/R/colors.R" class = "external-link" > < code > R/colors.R< / code > < / a > < / small >
< div class = "d-none name" > < code > ax_colors_manual.Rd< / code > < / div >
< / div >
< div class = "ref-description section level2" >
< p > Set specific color's series< / p >
< / div >
< div class = "section level2" >
< h2 id = "ref-usage" > Usage< a class = "anchor" aria-label = "anchor" href = "#ref-usage" > < / a > < / h2 >
2022-12-01 14:31:31 +01:00
< div class = "sourceCode" > < pre class = "sourceCode r" > < code > < span > < span class = "fu" > ax_colors_manual< / span > < span class = "op" > (< / span > < span class = "va" > ax< / span > , < span class = "va" > values< / span > < span class = "op" > )< / span > < / span > < / code > < / pre > < / div >
2021-12-10 17:17:40 +01:00
< / div >
< div class = "section level2" >
< h2 id = "arguments" > Arguments< a class = "anchor" aria-label = "anchor" href = "#arguments" > < / a > < / h2 >
< dl > < dt > ax< / dt >
< dd > < p > An < code > < a href = "apexchart.html" > apexchart()< / a > < / code > < code > htmlwidget< / code > object.< / p > < / dd >
2022-12-01 14:31:31 +01:00
2021-12-10 17:17:40 +01:00
< dt > values< / dt >
< dd > < p > Named list, names represent data series, values colors to use.< / p > < / dd >
2022-12-01 14:31:31 +01:00
2021-12-10 17:17:40 +01:00
< / dl > < / div >
< div class = "section level2" >
< h2 id = "value" > Value< a class = "anchor" aria-label = "anchor" href = "#value" > < / a > < / h2 >
2022-12-01 14:31:31 +01:00
< p > An < code > < a href = "apexchart.html" > apexchart()< / a > < / code > < / p >
< p > < / p >
< p > < code > htmlwidget< / code > object.< / p >
2021-12-10 17:17:40 +01:00
< / div >
< div class = "section level2" >
< h2 id = "ref-examples" > Examples< a class = "anchor" aria-label = "anchor" href = "#ref-examples" > < / a > < / h2 >
2022-12-01 14:31:31 +01:00
< div class = "sourceCode" > < pre class = "sourceCode r" > < code > < span class = "r-in" > < span > < span class = "co" > ## scatter< / span > < / span > < / span >
< span class = "r-in" > < span > < / span > < / span >
< span class = "r-in" > < span > < span class = "fu" > < a href = "apex.html" > apex< / a > < / span > < span class = "op" > (< / span > < / span > < / span >
< span class = "r-in" > < span > data < span class = "op" > =< / span > < span class = "va" > mtcars< / span > , < / span > < / span >
< span class = "r-in" > < span > type < span class = "op" > =< / span > < span class = "st" > "scatter"< / span > ,< / span > < / span >
< span class = "r-in" > < span > mapping < span class = "op" > =< / span > < span class = "fu" > < a href = "apexcharter-exports.html" > aes< / a > < / span > < span class = "op" > (< / span > x < span class = "op" > =< / span > < span class = "va" > wt< / span > , y < span class = "op" > =< / span > < span class = "va" > mpg< / span > , fill < span class = "op" > =< / span > < span class = "va" > cyl< / span > < span class = "op" > )< / span > < / span > < / span >
< span class = "r-in" > < span > < span class = "op" > )< / span > < span class = "op" > < a href = "apexcharter-exports.html" > %> %< / a > < / span > < / span > < / span >
< span class = "r-in" > < span > < span class = "fu" > ax_colors_manual< / span > < span class = "op" > (< / span > < span class = "fu" > < a href = "https://rdrr.io/r/base/list.html" class = "external-link" > list< / a > < / span > < span class = "op" > (< / span > < / span > < / span >
< span class = "r-in" > < span > < span class = "st" > "4"< / span > < span class = "op" > =< / span > < span class = "st" > "steelblue"< / span > ,< / span > < / span >
< span class = "r-in" > < span > < span class = "st" > "6"< / span > < span class = "op" > =< / span > < span class = "st" > "firebrick"< / span > ,< / span > < / span >
< span class = "r-in" > < span > < span class = "st" > "8"< / span > < span class = "op" > =< / span > < span class = "st" > "forestgreen"< / span > < / span > < / span >
< span class = "r-in" > < span > < span class = "op" > )< / span > < span class = "op" > )< / span > < / span > < / span >
2023-08-23 10:16:59 +02:00
< div id = "htmlwidget-2bb39ec335028d331e34" style = "width:700px;height:432.632880098888px;" class = "apexcharter html-widget " > < / div >
< script type = "application/json" data-for = "htmlwidget-2bb39ec335028d331e34" > { "x" : { "ax_opts" : { "chart" : { "type" : "scatter" } , "series" : [ { "name" : "6" , "type" : "scatter" , "data" : [ { "x" : 2.62 , "y" : 21 } , { "x" : 2.875 , "y" : 21 } , { "x" : 3.215 , "y" : 21.4 } , { "x" : 3.44 , "y" : 19.2 } , { "x" : 3.44 , "y" : 17.8 } , { "x" : 3.46 , "y" : 18.1 } , { "x" : 2.77 , "y" : 19.7 } ] } , { "name" : "4" , "type" : "scatter" , "data" : [ { "x" : 2.32 , "y" : 22.8 } , { "x" : 3.19 , "y" : 24.4 } , { "x" : 3.15 , "y" : 22.8 } , { "x" : 2.2 , "y" : 32.4 } , { "x" : 1.615 , "y" : 30.4 } , { "x" : 1.835 , "y" : 33.9 } , { "x" : 2.465 , "y" : 21.5 } , { "x" : 1.935 , "y" : 27.3 } , { "x" : 2.14 , "y" : 26 } , { "x" : 1.513 , "y" : 30.4 } , { "x" : 2.78 , "y" : 21.4 } ] } , { "name" : "8" , "type" : "scatter" , "data" : [ { "x" : 3.44 , "y" : 18.7 } , { "x" : 3.57 , "y" : 14.3 } , { "x" : 3.57 , "y" : 15 } , { "x" : 4.07 , "y" : 16.4 } , { "x" : 3.73 , "y" : 17.3 } , { "x" : 3.78 , "y" : 15.2 } , { "x" : 5.25 , "y" : 10.4 } , { "x" : 5.424 , "y" : 10.4 } , { "x" : 5.345 , "y" : 14.7 } , { "x" : 3.52 , "y" : 15.5 } , { "x" : 3.435 , "y" : 15.2 } , { "x" : 3.84 , "y" : 13.3 } , { "x" : 3.845 , "y" : 19.2 } , { "x" : 3.17 , "y" : 15.8 } ] } ] , "dataLabels" : { "enabled" : false } , "xaxis" : { "type" : "numeric" , "min" : 1 , "max" : 6 , "tickAmount" : 5 , "crosshairs" : { "show" : true , "stroke" : { "dashArray" : 0 } } , "labels" : { "style" : { "colors" : "#848484" } } } , "yaxis" : { "min" : 10 , "max" : 35 , "tickAmount" : 5 , "labels" : { "formatter" : "function(value) {var locale = formatLocale(JSON.parse('{ \"decimal\": \".\", \"thousands\": \",\", \"grouping\": [3], \"currency\": [\"$\", \"\"]}')); return '' + locale.format('~r')(value) + '';}" , "style" : { "colors" : "#848484" } } , "tooltip" : { "enabled" : true } } , "grid" : { "xaxis" : { "lines" : { "show" : true } } } , "colors" : [ "firebrick" , "steelblue" , "forestgreen" ] } , "auto_update" : { "series_animate" : true , "update_options" : false , "options_animate" : true , "options_redrawPaths" : true , "update_synced_charts" : false } , "sparkbox" : false , "xaxis" : { "min" : 1.513 , "max" : 5.424 } , "type" : "scatter" , "colors_manual" : { "4" : "steelblue" , "6" : "firebrick" , "8" : "forestgreen" } } , "evals" : [ "ax_opts.yaxis.labels.formatter" ] , "jsHooks" : [ ] } < / script > < span class = "r-in" > < span > < / span > < / span >
2022-12-01 14:31:31 +01:00
< span class = "r-in" > < span > < span class = "co" > # If missing level, colors are recycled< / span > < / span > < / span >
< span class = "r-in" > < span > < span class = "fu" > < a href = "apex.html" > apex< / a > < / span > < span class = "op" > (< / span > < / span > < / span >
< span class = "r-in" > < span > data < span class = "op" > =< / span > < span class = "va" > mtcars< / span > , < / span > < / span >
< span class = "r-in" > < span > type < span class = "op" > =< / span > < span class = "st" > "scatter"< / span > ,< / span > < / span >
< span class = "r-in" > < span > mapping < span class = "op" > =< / span > < span class = "fu" > < a href = "apexcharter-exports.html" > aes< / a > < / span > < span class = "op" > (< / span > x < span class = "op" > =< / span > < span class = "va" > wt< / span > , y < span class = "op" > =< / span > < span class = "va" > mpg< / span > , fill < span class = "op" > =< / span > < span class = "va" > cyl< / span > < span class = "op" > )< / span > < / span > < / span >
< span class = "r-in" > < span > < span class = "op" > )< / span > < span class = "op" > < a href = "apexcharter-exports.html" > %> %< / a > < / span > < / span > < / span >
< span class = "r-in" > < span > < span class = "fu" > ax_colors_manual< / span > < span class = "op" > (< / span > < span class = "fu" > < a href = "https://rdrr.io/r/base/list.html" class = "external-link" > list< / a > < / span > < span class = "op" > (< / span > < / span > < / span >
< span class = "r-in" > < span > < span class = "st" > "4"< / span > < span class = "op" > =< / span > < span class = "st" > "steelblue"< / span > ,< / span > < / span >
< span class = "r-in" > < span > < span class = "st" > "8"< / span > < span class = "op" > =< / span > < span class = "st" > "forestgreen"< / span > < / span > < / span >
< span class = "r-in" > < span > < span class = "op" > )< / span > < span class = "op" > )< / span > < / span > < / span >
2021-12-10 17:17:40 +01:00
< span class = "r-wrn co" > < span class = "r-pr" > #> < / span > < span class = "warning" > Warning: < / span > Some groups doesn't have a corresponding color value< / span >
2023-08-23 10:16:59 +02:00
< div id = "htmlwidget-58c563edb2e61065bd5c" style = "width:700px;height:432.632880098888px;" class = "apexcharter html-widget " > < / div >
< script type = "application/json" data-for = "htmlwidget-58c563edb2e61065bd5c" > { "x" : { "ax_opts" : { "chart" : { "type" : "scatter" } , "series" : [ { "name" : "6" , "type" : "scatter" , "data" : [ { "x" : 2.62 , "y" : 21 } , { "x" : 2.875 , "y" : 21 } , { "x" : 3.215 , "y" : 21.4 } , { "x" : 3.44 , "y" : 19.2 } , { "x" : 3.44 , "y" : 17.8 } , { "x" : 3.46 , "y" : 18.1 } , { "x" : 2.77 , "y" : 19.7 } ] } , { "name" : "4" , "type" : "scatter" , "data" : [ { "x" : 2.32 , "y" : 22.8 } , { "x" : 3.19 , "y" : 24.4 } , { "x" : 3.15 , "y" : 22.8 } , { "x" : 2.2 , "y" : 32.4 } , { "x" : 1.615 , "y" : 30.4 } , { "x" : 1.835 , "y" : 33.9 } , { "x" : 2.465 , "y" : 21.5 } , { "x" : 1.935 , "y" : 27.3 } , { "x" : 2.14 , "y" : 26 } , { "x" : 1.513 , "y" : 30.4 } , { "x" : 2.78 , "y" : 21.4 } ] } , { "name" : "8" , "type" : "scatter" , "data" : [ { "x" : 3.44 , "y" : 18.7 } , { "x" : 3.57 , "y" : 14.3 } , { "x" : 3.57 , "y" : 15 } , { "x" : 4.07 , "y" : 16.4 } , { "x" : 3.73 , "y" : 17.3 } , { "x" : 3.78 , "y" : 15.2 } , { "x" : 5.25 , "y" : 10.4 } , { "x" : 5.424 , "y" : 10.4 } , { "x" : 5.345 , "y" : 14.7 } , { "x" : 3.52 , "y" : 15.5 } , { "x" : 3.435 , "y" : 15.2 } , { "x" : 3.84 , "y" : 13.3 } , { "x" : 3.845 , "y" : 19.2 } , { "x" : 3.17 , "y" : 15.8 } ] } ] , "dataLabels" : { "enabled" : false } , "xaxis" : { "type" : "numeric" , "min" : 1 , "max" : 6 , "tickAmount" : 5 , "crosshairs" : { "show" : true , "stroke" : { "dashArray" : 0 } } , "labels" : { "style" : { "colors" : "#848484" } } } , "yaxis" : { "min" : 10 , "max" : 35 , "tickAmount" : 5 , "labels" : { "formatter" : "function(value) {var locale = formatLocale(JSON.parse('{ \"decimal\": \".\", \"thousands\": \",\", \"grouping\": [3], \"currency\": [\"$\", \"\"]}')); return '' + locale.format('~r')(value) + '';}" , "style" : { "colors" : "#848484" } } , "tooltip" : { "enabled" : true } } , "grid" : { "xaxis" : { "lines" : { "show" : true } } } , "colors" : [ "steelblue" , "forestgreen" ] } , "auto_update" : { "series_animate" : true , "update_options" : false , "options_animate" : true , "options_redrawPaths" : true , "update_synced_charts" : false } , "sparkbox" : false , "xaxis" : { "min" : 1.513 , "max" : 5.424 } , "type" : "scatter" , "colors_manual" : { "4" : "steelblue" , "8" : "forestgreen" } } , "evals" : [ "ax_opts.yaxis.labels.formatter" ] , "jsHooks" : [ ] } < / script > < span class = "r-in" > < span > < / span > < / span >
2022-12-01 14:31:31 +01:00
< span class = "r-in" > < span > < span class = "co" > # Ignore levels not present in data< / span > < / span > < / span >
< span class = "r-in" > < span > < span class = "fu" > < a href = "apex.html" > apex< / a > < / span > < span class = "op" > (< / span > < / span > < / span >
< span class = "r-in" > < span > data < span class = "op" > =< / span > < span class = "va" > mtcars< / span > , < / span > < / span >
< span class = "r-in" > < span > type < span class = "op" > =< / span > < span class = "st" > "scatter"< / span > ,< / span > < / span >
< span class = "r-in" > < span > mapping < span class = "op" > =< / span > < span class = "fu" > < a href = "apexcharter-exports.html" > aes< / a > < / span > < span class = "op" > (< / span > x < span class = "op" > =< / span > < span class = "va" > wt< / span > , y < span class = "op" > =< / span > < span class = "va" > mpg< / span > , fill < span class = "op" > =< / span > < span class = "va" > cyl< / span > < span class = "op" > )< / span > < / span > < / span >
< span class = "r-in" > < span > < span class = "op" > )< / span > < span class = "op" > < a href = "apexcharter-exports.html" > %> %< / a > < / span > < / span > < / span >
< span class = "r-in" > < span > < span class = "fu" > ax_colors_manual< / span > < span class = "op" > (< / span > < span class = "fu" > < a href = "https://rdrr.io/r/base/list.html" class = "external-link" > list< / a > < / span > < span class = "op" > (< / span > < / span > < / span >
< span class = "r-in" > < span > < span class = "st" > "4"< / span > < span class = "op" > =< / span > < span class = "st" > "steelblue"< / span > ,< / span > < / span >
< span class = "r-in" > < span > < span class = "st" > "6"< / span > < span class = "op" > =< / span > < span class = "st" > "firebrick"< / span > ,< / span > < / span >
< span class = "r-in" > < span > < span class = "st" > "8"< / span > < span class = "op" > =< / span > < span class = "st" > "forestgreen"< / span > ,< / span > < / span >
< span class = "r-in" > < span > < span class = "st" > "99"< / span > < span class = "op" > =< / span > < span class = "st" > "yellow"< / span > < / span > < / span >
< span class = "r-in" > < span > < span class = "op" > )< / span > < span class = "op" > )< / span > < / span > < / span >
2023-08-23 10:16:59 +02:00
< div id = "htmlwidget-fb5348959fcaa4d1b573" style = "width:700px;height:432.632880098888px;" class = "apexcharter html-widget " > < / div >
< script type = "application/json" data-for = "htmlwidget-fb5348959fcaa4d1b573" > { "x" : { "ax_opts" : { "chart" : { "type" : "scatter" } , "series" : [ { "name" : "6" , "type" : "scatter" , "data" : [ { "x" : 2.62 , "y" : 21 } , { "x" : 2.875 , "y" : 21 } , { "x" : 3.215 , "y" : 21.4 } , { "x" : 3.44 , "y" : 19.2 } , { "x" : 3.44 , "y" : 17.8 } , { "x" : 3.46 , "y" : 18.1 } , { "x" : 2.77 , "y" : 19.7 } ] } , { "name" : "4" , "type" : "scatter" , "data" : [ { "x" : 2.32 , "y" : 22.8 } , { "x" : 3.19 , "y" : 24.4 } , { "x" : 3.15 , "y" : 22.8 } , { "x" : 2.2 , "y" : 32.4 } , { "x" : 1.615 , "y" : 30.4 } , { "x" : 1.835 , "y" : 33.9 } , { "x" : 2.465 , "y" : 21.5 } , { "x" : 1.935 , "y" : 27.3 } , { "x" : 2.14 , "y" : 26 } , { "x" : 1.513 , "y" : 30.4 } , { "x" : 2.78 , "y" : 21.4 } ] } , { "name" : "8" , "type" : "scatter" , "data" : [ { "x" : 3.44 , "y" : 18.7 } , { "x" : 3.57 , "y" : 14.3 } , { "x" : 3.57 , "y" : 15 } , { "x" : 4.07 , "y" : 16.4 } , { "x" : 3.73 , "y" : 17.3 } , { "x" : 3.78 , "y" : 15.2 } , { "x" : 5.25 , "y" : 10.4 } , { "x" : 5.424 , "y" : 10.4 } , { "x" : 5.345 , "y" : 14.7 } , { "x" : 3.52 , "y" : 15.5 } , { "x" : 3.435 , "y" : 15.2 } , { "x" : 3.84 , "y" : 13.3 } , { "x" : 3.845 , "y" : 19.2 } , { "x" : 3.17 , "y" : 15.8 } ] } ] , "dataLabels" : { "enabled" : false } , "xaxis" : { "type" : "numeric" , "min" : 1 , "max" : 6 , "tickAmount" : 5 , "crosshairs" : { "show" : true , "stroke" : { "dashArray" : 0 } } , "labels" : { "style" : { "colors" : "#848484" } } } , "yaxis" : { "min" : 10 , "max" : 35 , "tickAmount" : 5 , "labels" : { "formatter" : "function(value) {var locale = formatLocale(JSON.parse('{ \"decimal\": \".\", \"thousands\": \",\", \"grouping\": [3], \"currency\": [\"$\", \"\"]}')); return '' + locale.format('~r')(value) + '';}" , "style" : { "colors" : "#848484" } } , "tooltip" : { "enabled" : true } } , "grid" : { "xaxis" : { "lines" : { "show" : true } } } , "colors" : [ "firebrick" , "steelblue" , "forestgreen" ] } , "auto_update" : { "series_animate" : true , "update_options" : false , "options_animate" : true , "options_redrawPaths" : true , "update_synced_charts" : false } , "sparkbox" : false , "xaxis" : { "min" : 1.513 , "max" : 5.424 } , "type" : "scatter" , "colors_manual" : { "4" : "steelblue" , "6" : "firebrick" , "8" : "forestgreen" , "99" : "yellow" } } , "evals" : [ "ax_opts.yaxis.labels.formatter" ] , "jsHooks" : [ ] } < / script > < span class = "r-in" > < span > < / span > < / span >
2022-12-01 14:31:31 +01:00
< span class = "r-in" > < span > < / span > < / span >
< span class = "r-in" > < span > < / span > < / span >
< span class = "r-in" > < span > < span class = "co" > ## Bar< / span > < / span > < / span >
< span class = "r-in" > < span > < / span > < / span >
< span class = "r-in" > < span > < span class = "va" > tab< / span > < span class = "op" > < -< / span > < span class = "fu" > < a href = "https://rdrr.io/r/base/table.html" class = "external-link" > table< / a > < / span > < span class = "op" > (< / span > < span class = "fu" > < a href = "https://rdrr.io/r/base/sample.html" class = "external-link" > sample< / a > < / span > < span class = "op" > (< / span > < span class = "va" > letters< / span > < span class = "op" > [< / span > < span class = "fl" > 1< / span > < span class = "op" > :< / span > < span class = "fl" > 5< / span > < span class = "op" > ]< / span > , < span class = "fl" > 100< / span > , < span class = "cn" > TRUE< / span > < span class = "op" > )< / span > , < span class = "fu" > < a href = "https://rdrr.io/r/base/sample.html" class = "external-link" > sample< / a > < / span > < span class = "op" > (< / span > < span class = "va" > LETTERS< / span > < span class = "op" > [< / span > < span class = "fl" > 1< / span > < span class = "op" > :< / span > < span class = "fl" > 5< / span > < span class = "op" > ]< / span > , < span class = "fl" > 100< / span > , < span class = "cn" > TRUE< / span > < span class = "op" > )< / span > < span class = "op" > )< / span > < / span > < / span >
< span class = "r-in" > < span > < span class = "va" > dat< / span > < span class = "op" > < -< / span > < span class = "fu" > < a href = "https://rdrr.io/r/base/as.data.frame.html" class = "external-link" > as.data.frame< / a > < / span > < span class = "op" > (< / span > < span class = "va" > tab< / span > < span class = "op" > )< / span > < / span > < / span >
< span class = "r-in" > < span > < / span > < / span >
< span class = "r-in" > < span > < span class = "fu" > < a href = "apex.html" > apex< / a > < / span > < span class = "op" > (< / span > < / span > < / span >
< span class = "r-in" > < span > data < span class = "op" > =< / span > < span class = "va" > dat< / span > ,< / span > < / span >
< span class = "r-in" > < span > type < span class = "op" > =< / span > < span class = "st" > "column"< / span > ,< / span > < / span >
< span class = "r-in" > < span > mapping < span class = "op" > =< / span > < span class = "fu" > < a href = "apexcharter-exports.html" > aes< / a > < / span > < span class = "op" > (< / span > x < span class = "op" > =< / span > < span class = "va" > Var1< / span > , y < span class = "op" > =< / span > < span class = "va" > Freq< / span > , group < span class = "op" > =< / span > < span class = "va" > Var2< / span > < span class = "op" > )< / span > < / span > < / span >
< span class = "r-in" > < span > < span class = "op" > )< / span > < span class = "op" > < a href = "apexcharter-exports.html" > %> %< / a > < / span > < / span > < / span >
< span class = "r-in" > < span > < span class = "fu" > ax_colors_manual< / span > < span class = "op" > (< / span > < span class = "fu" > < a href = "https://rdrr.io/r/base/list.html" class = "external-link" > list< / a > < / span > < span class = "op" > (< / span > < / span > < / span >
< span class = "r-in" > < span > A < span class = "op" > =< / span > < span class = "st" > "steelblue"< / span > ,< / span > < / span >
< span class = "r-in" > < span > C < span class = "op" > =< / span > < span class = "st" > "firebrick"< / span > ,< / span > < / span >
< span class = "r-in" > < span > D < span class = "op" > =< / span > < span class = "st" > "forestgreen"< / span > ,< / span > < / span >
< span class = "r-in" > < span > B < span class = "op" > =< / span > < span class = "st" > "peachpuff"< / span > ,< / span > < / span >
< span class = "r-in" > < span > E < span class = "op" > =< / span > < span class = "st" > "chartreuse"< / span > < / span > < / span >
< span class = "r-in" > < span > < span class = "op" > )< / span > < span class = "op" > )< / span > < / span > < / span >
2023-08-23 10:16:59 +02:00
< div id = "htmlwidget-33c68fffb9a6c967963c" style = "width:700px;height:432.632880098888px;" class = "apexcharter html-widget " > < / div >
< script type = "application/json" data-for = "htmlwidget-33c68fffb9a6c967963c" > { "x" : { "ax_opts" : { "chart" : { "type" : "bar" } , "series" : [ { "name" : "A" , "type" : "bar" , "data" : [ { "x" : "a" , "y" : 5 } , { "x" : "b" , "y" : 4 } , { "x" : "c" , "y" : 3 } , { "x" : "d" , "y" : 4 } , { "x" : "e" , "y" : 5 } ] } , { "name" : "B" , "type" : "bar" , "data" : [ { "x" : "a" , "y" : 4 } , { "x" : "b" , "y" : 3 } , { "x" : "c" , "y" : 8 } , { "x" : "d" , "y" : 5 } , { "x" : "e" , "y" : 4 } ] } , { "name" : "C" , "type" : "bar" , "data" : [ { "x" : "a" , "y" : 4 } , { "x" : "b" , "y" : 5 } , { "x" : "c" , "y" : 2 } , { "x" : "d" , "y" : 2 } , { "x" : "e" , "y" : 7 } ] } , { "name" : "D" , "type" : "bar" , "data" : [ { "x" : "a" , "y" : 5 } , { "x" : "b" , "y" : 2 } , { "x" : "c" , "y" : 2 } , { "x" : "d" , "y" : 5 } , { "x" : "e" , "y" : 1 } ] } , { "name" : "E" , "type" : "bar" , "data" : [ { "x" : "a" , "y" : 6 } , { "x" : "b" , "y" : 4 } , { "x" : "c" , "y" : 5 } , { "x" : "d" , "y" : 2 } , { "x" : "e" , "y" : 3 } ] } ] , "dataLabels" : { "enabled" : false } , "plotOptions" : { "bar" : { "horizontal" : false , "isDumbbell" : false } } , "tooltip" : { "shared" : true , "intersect" : false , "followCursor" : true } , "grid" : { "yaxis" : { "lines" : { "show" : true } } , "xaxis" : { "lines" : { "show" : false } } } , "yaxis" : { "labels" : { "style" : { "colors" : "#848484" } } } , "xaxis" : { "labels" : { "style" : { "colors" : "#848484" } } } , "colors" : [ "steelblue" , "peachpuff" , "firebrick" , "forestgreen" , "chartreuse" ] } , "auto_update" : { "series_animate" : true , "update_options" : false , "options_animate" : true , "options_redrawPaths" : true , "update_synced_charts" : false } , "sparkbox" : false , "type" : "column" , "colors_manual" : { "A" : "steelblue" , "C" : "firebrick" , "D" : "forestgreen" , "B" : "peachpuff" , "E" : "chartreuse" } } , "evals" : [ ] , "jsHooks" : [ ] } < / script > < / code > < / pre > < / div >
2021-12-10 17:17:40 +01:00
< / div >
< / main > < aside class = "col-md-3" > < nav id = "toc" > < h2 > On this page< / h2 >
< / nav > < / aside > < / div >
< footer > < div class = "pkgdown-footer-left" >
< p > < / p > < p > Developed by < a href = "https://twitter.com/_pvictorr" class = "external-link" > < img src = "https://pbs.twimg.com/profile_images/844237339404722177/E1U61aM8_normal.jpg" > Victor Perrier< / a > , < a href = "https://twitter.com/_mfaan" class = "external-link" > < img src = "https://pbs.twimg.com/profile_images/912313931326218240/o1-wvA18_normal.jpg" > Fanny Meyer< / a > .< / p >
< / div >
< div class = "pkgdown-footer-right" >
2023-01-08 18:49:46 +01:00
< p > < / p > < p > Site built with < a href = "https://pkgdown.r-lib.org/" class = "external-link" > pkgdown< / a > 2.0.7.< / p >
2021-12-10 17:17:40 +01:00
< / div >
< / footer > < / div >
< / body > < / html >