data(wire)
x3p <- wire
if (interactive()) x3p_image(x3p, size = c(400, 400), zoom=0.8)
x3p_with <- x3p_bin_stripes(x3p, direction="vertical")
x3p_with <- x3p_bin_stripes(x3p, direction="vertical",
colors=c("#b12819","#ffffff","#134D6B"), freqs=c(0, 0.3, 0.7, 1))
if (interactive()) x3p_image(x3p_with, size = c(400, 400), zoom=0.8)
data(lea)
if (interactive()) {
lea %>% x3p_bin_stripes() %>% x3p_image() # default stripes
# three colors only
lea %>% x3p_bin_stripes(
colors=c("#b12819","#ffffff","#134D6B"),
freqs=c(0, 0.3, 0.7, 1)) %>% x3p_image()
}
Run the code above in your browser using DataLab