% Generated by roxygen2: do not edit by hand % Please edit documentation in R/animate_joins.R \name{animate_inner_join} \alias{animate_inner_join} \title{Animates an inner join} \usage{ animate_inner_join(x, y, by, export = "gif", ...) } \arguments{ \item{x}{the x dataset} \item{y}{the y dataset} \item{by}{the by arguments for the join} \item{export}{the export type, either gif, first or last. The latter two export ggplots of the first/last state of the join} \item{...}{further arguments passed to base_plot} } \value{ either a gif or a ggplot } \description{ Animates an inner join } \examples{ x <- data_frame( id = 1:3, x = paste0("x", 1:3) ) y <- data_frame( id = (1:4)[-3], y = paste0("y", (1:4)[-3]) ) animate_inner_join(x, y, by = "id", export = "first") animate_inner_join(x, y, by = "id", export = "last") \dontrun{ # to save the ggplot, use ij <- animate_inner_join(x, y, by = "id", export = "last") ggsave("inner-join.pdf", ij) animate_inner_join(x, y, by = "id", export = "gif") # to save the gif, use ij <- animate_inner_join(x, y, by = "id", export = "gif") anim_save(ij, "inner-join.gif") } }