canvas_blacklight {aRtsy} R Documentation

## Draw Blacklights

### Description

This function draws the predictions from a support vector machine algorithm trained on randomly generated continuous data.

### Usage

canvas_blacklight(colors, n = 1000, resolution = 500)


### Arguments

 colors a string or character vector specifying the color(s) used for the artwork. n a positive integer specifying the number of random data points to generate. resolution resolution of the artwork in pixels per row/column. Increasing the resolution increases the quality of the artwork but also increases the computation time exponentially.

### Value

A ggplot object containing the artwork.

### Author(s)

Koen Derks, koen-derks@hotmail.com

### References

colorPalette

### Examples


set.seed(1)

# Simple example
canvas_blacklight(colors = colorPalette("tuscany2"))



[Package aRtsy version 0.1.8 Index]
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.292876660823822, "perplexity": 11107.03386926174}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2022-33/segments/1659882571745.28/warc/CC-MAIN-20220812170436-20220812200436-00148.warc.gz"}