Learn R Programming

eulerr (version 3.0.1)

label: Compute locations for overlaps

Description

Runs the same algorithm as in plot.euler() / panel.euler.labels() to label the overlaps in the Euler diagram. This is useful if you want to use your own solution to plot the final diagram.

Usage

label(x, labels = NULL)

Arguments

x

An object of class 'euler'

labels

An optional character vector of labels for the diagram.

Value

A numeric matrix of x and y coordinates for the labels, as well as the quantities and proportions for the overlaps depicted in the labels.

Details

In the cases where x is a list of Euler diagrams (if the by argument was used in the call to euler()), run lapply(x, label) to get the expected result for each diagram.

Examples

Run this code
# NOT RUN {
fit <- euler(c(A = 1, B = 3, "A&B" = 0.9))
label(fit)
# }

Run the code above in your browser using DataLab