Last chance! 50% off unlimited learning
Sale ends in
Useful drawers for building custom shape plots using the grindr approach. See examples and vignettes.
draw_polygon(
coo,
f,
col = par("fg"),
fill = NA,
lwd = 1,
lty = 1,
transp = 0,
pal = pal_qual,
...
)draw_outline(
coo,
f,
col = par("fg"),
fill = NA,
lwd = 1,
lty = 1,
transp = 0,
pal = pal_qual,
...
)
draw_outlines(
coo,
f,
col = par("fg"),
fill = NA,
lwd = 1,
lty = 1,
transp = 0,
pal = pal_qual,
...
)
draw_points(
coo,
f,
col = par("fg"),
cex = 1/2,
pch = 20,
transp = 0,
pal = pal_qual,
...
)
draw_landmarks(
coo,
f,
col = par("fg"),
cex = 1/2,
pch = 20,
transp = 0,
pal = pal_qual,
...
)
draw_lines(
coo,
f,
col = par("fg"),
lwd = 1,
lty = 1,
transp = 0,
pal = pal_qual,
...
)
draw_centroid(
coo,
f,
col = par("fg"),
pch = 3,
cex = 0.5,
transp = 0,
pal = pal_qual,
...
)
draw_curve(
coo,
f,
col = par("fg"),
lwd = 1,
lty = 1,
transp = 0,
pal = pal_qual,
...
)
draw_curves(
coo,
f,
col = par("fg"),
lwd = 1,
lty = 1,
transp = 0,
pal = pal_qual,
...
)
draw_firstpoint(
coo,
f,
label = "^",
col = par("fg"),
cex = 3/4,
transp = 0,
pal = pal_qual,
...
)
draw_axes(coo, col = "#999999", lwd = 1/2, ...)
draw_ticks(coo, col = "#333333", cex = 3/4, lwd = 3/4, ...)
draw_labels(coo, labels = 1:nrow(coo), cex = 1/2, d = 1/20, ...)
draw_links(
coo,
f,
links,
col = "#99999955",
lwd = 1/2,
lty = 1,
transp = 0,
pal = pal_qual,
...
)
draw_title(
coo,
main = "",
sub = "",
cex = c(1, 3/4),
font = c(2, 1),
padding = 1/200,
...
)
a drawing layer
matrix
of 2 columns for (x, y) coordinates
an optionnal factor specification to feed. See examples and vignettes.
color (hexadecimal) to draw components
color (hexadecimal) to draw components
to draw components
to draw components
numeric
transparency (default:0, min:0, max:1)
a palette to use if no col/border/etc. are provided. See [palettes]
additional options to feed core functions for each drawer
to draw components ((c(2, 1)
by default) for draw_title
)
to draw components
to indicate first point
character
name of labels to draw (defaut to 1:nrow(coo)
)
numeric
proportion of d(centroid-each_point)
to add when centrifugating landmarks
matrix
of links to use to draw segments between landmarks. See wings$ldk
for an example
character
title (empty by default)
character
subtitle (empty by default)
numeric
to feed text (c(2, 1)
by default)
numeric
a fraction of the graphical window (1/200
by default)
grindr_layers
Other grindr:
layers_morphospace
,
layers
,
mosaic_engine()
,
papers
,
pile()
,
plot_LDA()
,
plot_NMDS()
,
plot_PCA()
bot[1] %>% paper_grid() %>% draw_polygon()
olea %>% paper_chess %>% draw_lines(~var)
hearts[240] %>% paper_white() %>% draw_outline() %>%
coo_sample(24) %>% draw_landmarks %>% draw_labels() %>%
draw_links(links=replicate(2, sample(1:24, 8)))
bot %>%
paper_grid() %>%
draw_outlines() %>%
draw_title("Alcohol abuse \nis dangerous for health", "Drink responsibly")
Run the code above in your browser using DataLab