inst/ChainLadder_hexagon.R

library(hexSticker)
library(ggplot2)
DF1 <- data.frame(x=c(0,0,1), y=c(0,1,1))
DF2 <- data.frame(x=c(0,1,1), y=c(0,1,0))
p <- ggplot(DF1, aes(x=x, y=y)) + 
  geom_polygon(col="black", fill="deepskyblue") + 
  geom_polygon(data=DF2, col="black", fill="white")
p <- p + theme_transparent()  + theme_void() + theme(legend.position = 'none')
p
sticker(p, package="ChainLadder", p_size=20, s_x=1, s_y=.75, s_width=1, s_height=0.91,
        h_fill="black", h_color="lightgrey",
        filename="man/figures/logo.png")

Try the ChainLadder package in your browser

Any scripts or data that you put into this service are public.

ChainLadder documentation built on July 9, 2023, 5:12 p.m.