knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
The goal of ggclipped is to ...
You can install the released version of ggclipped from CRAN with:
install.packages("ggclipped")
This is a basic example which shows you how to solve a common problem:
library(ggplot2) library(ggclipped) data <- data.frame(rank = rep(0:1, 5), time = rep(1:5, 2), team = rep(0:1, each = 5)) ggplot(data, aes(time, rank, color = factor(team))) + geom_line_clip(size = 2, clip_length = 0.05) + theme_minimal()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.