Skip to contents

Interpolating the Inclusion of the Other in the Self Scale (self-other merging) easily.

Usage

overlap_circle(response, categories = c("Self", "Other"))

Arguments

response

The variable to plot.

categories

The desired categories of the two overlapping circles.

Value

A plot of class gList, displaying overlapping circles relative to the selected score.

Examples

# Score of 1 (0% overlap)
overlap_circle(1)


# Score of 3.5 (25% overlap)
overlap_circle(3.5)


# Score of 6.84 (81.8% overlap)
overlap_circle(6.84)


# Changing labels
overlap_circle(3.12, categories = c("Humans", "Animals"))


# \donttest{
# Saving to file (PDF or PNG)
mypath <- tempfile(fileext = ".pdf")
plot <- overlap_circle(3.5)

ggplot2::ggsave(plot, file = mypath, width = 7,
  height = 7, unit = 'in', dpi = 300)
# Change for your own desired path
# }