canvas_blacklight {aRtsy} | R Documentation |
This function draws the predictions from a support vector machine algorithm trained on randomly generated continuous data.
canvas_blacklight(colors, n = 1000, resolution = 500)
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. |
A ggplot
object containing the artwork.
Koen Derks, koen-derks@hotmail.com
https://en.wikipedia.org/wiki/Support-vector_machine
colorPalette
set.seed(1)
# Simple example
canvas_blacklight(colors = colorPalette("tuscany2"))