Learn R Programming

joinspy (version 0.7.3)

plot.JoinReport: Plot Method for JoinReport

Description

Creates a Venn diagram showing key overlap between tables.

Usage

# S3 method for JoinReport
plot(
  x,
  file = NULL,
  width = 6,
  height = 5,
  colors = c("#4A90D9", "#D94A4A"),
  ...
)

Value

Invisibly returns the plot data (left_only, both, right_only counts).

Arguments

x

A JoinReport object.

file

Optional file path to save the plot (PNG, SVG, or PDF based on extension). If NULL (default), displays in the current graphics device.

width

Width in inches (default 6).

height

Height in inches (default 5).

colors

Character vector of length 2 for left and right circle colors.

...

Additional arguments (ignored).

Examples

Run this code
orders <- data.frame(id = 1:5, val = 1:5)
customers <- data.frame(id = 3:7, name = letters[3:7])

report <- join_spy(orders, customers, by = "id")
plot(report)

Run the code above in your browser using DataLab