comicR: Add a comic effect to R plots and other outputs

Description Usage Arguments

Description

Sometimes less precision is better as proven by xkcd. This function will convert SVG plots from R to a comic version.

Usage

1
2
comicR(selector = NULL, ff = NULL, ffc = NULL, fsteps = NULL,
  msteps = NULL, width = 0, height = 0)

Arguments

selector

String that represents a valid CSS selector. If none provided then all SVG elements on the page will be cartoonized.

ff

fuzz factor for line drawing: bigger -> fuzzier; 8 default

ffc

fuzz factor for curve drawing: bigger -> fuzzier; 0.4 default

fsteps

number of pixels per step: smaller -> fuzzier; 50 default

msteps

min number of steps: bigger -> fuzzier; 4 default

width

integer in px representing the width of the container. Since the container is only for convenience, this is very likely the default 0.

height

integer in px representing the height of the container. Since the container is only for convenience, this is very likely the default 0.


timelyportfolio/comicR documentation built on May 31, 2019, 1:49 p.m.