Description Usage Arguments Value Note Author(s) Examples
Programmatically generated fish drawings via ggplot2 based on JavaScript library https://github.com/LingDong-/fishdraw.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | custom_params(
path = "./fishdraw.js",
save = getwd(),
body_curve_type = 0,
body_curve_amount = 0.85,
body_length = 420,
body_height = 90,
scale_type = 1,
scale_scale = 1,
pattern_type = 3,
pattern_scale = 1,
dorsal_texture_type = 1,
dorsal_type = 0,
dorsal_length = 100,
dorsal_start = 8,
dorsal_end = 27,
wing_texture_type = 0,
wing_type = 0,
wing_start = 6,
wing_end = 6,
wing_y = 0.7,
wing_length = 130,
wing_width = 10,
pelvic_start = 9,
pelvic_end = 14,
pelvic_length = 85,
pelvic_type = 0,
pelvic_texture_type = 0,
anal_start = 19,
anal_end = 29,
anal_length = 50,
anal_type = 0,
anal_texture_type = 0,
tail_type = 0,
tail_length = 75,
finlet_type = 0,
neck_type = 0,
nose_height = 0,
mouth_size = 8,
head_length = 30,
head_texture_amount = 60,
has_moustache = 1,
moustache_length = 10,
has_beard = 0,
has_teeth = 1,
teeth_length = 8,
teeth_space = 3.5,
beard_length = 30,
eye_type = 0,
eye_size = 10,
jaw_size = 1,
jaw_open = 1
)
|
path |
Path for JavaScript fishdraw.js |
save |
Save path for custom JavaScript fishdraw.js(e.g.getwd()) |
body_curve_type |
|
body_curve_amount |
|
body_length |
|
body_height |
|
scale_type |
|
scale_scale |
|
pattern_type |
|
pattern_scale |
|
dorsal_texture_type |
|
dorsal_type |
|
dorsal_length |
|
dorsal_start |
|
dorsal_end |
|
wing_texture_type |
|
wing_type |
|
wing_start |
|
wing_end |
|
wing_y |
|
wing_length |
|
wing_width |
|
pelvic_start |
|
pelvic_end |
|
pelvic_length |
|
pelvic_type |
|
pelvic_texture_type |
|
anal_start |
|
anal_end |
|
anal_length |
|
anal_type |
|
anal_texture_type |
|
tail_type |
|
tail_length |
|
finlet_type |
|
neck_type |
|
nose_height |
|
mouth_size |
|
head_length |
|
head_texture_amount |
|
has_moustache |
|
moustache_length |
|
has_beard |
|
has_teeth |
|
teeth_length |
|
teeth_space |
|
beard_length |
|
eye_type |
|
eye_size |
|
jaw_size |
|
jaw_open |
|
Custom JS library.
Note that some fish species might not be representable with this system, and passing "bad" params might produce weird results or crash the program.
Liuyong Ding ly_ding@126.com
1 2 3 4 5 6 | ## Not run:
# create and implement a custom JS library
custom_params(path = "./fishdraw.js",save = getwd())
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.