| pp_utils | R Documentation | 
piecepackr utility functionscleave() converts a delimiter separated string into a vector.
inch(x) is equivalent to grid::unit(x, "in").
is_color_invisible() tells whether the color is transparent (and hence need not be drawn).
is_color_invisible(col)
inch(inches)
cleave(s, sep = ",", float = FALSE, color = FALSE)
file2grob(file, distort = TRUE)
col | 
 Color  | 
inches | 
 Number representing number of inches  | 
s | 
 String to convert  | 
sep | 
 Delimiter (defaults to ",")  | 
float | 
 If   | 
color | 
 if   | 
file | 
 Filename of image  | 
distort | 
 Logical value of whether one should preserve the aspect ratio or distort to fit the area it is drawn in  | 
 cleave("0.5,0.2,0.4,0.5", float=TRUE)
 cleave("black,darkred,#050EAA,,", color=TRUE)
 is_color_invisible("transparent")
 is_color_invisible(NA)
 is_color_invisible("blue")
 is_color_invisible("#05AE9C")
 if (requireNamespace("grid", quietly = TRUE)) {
     identical(inch(1), grid::unit(1, "inch"))
 }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.