resize_circles: Match the areas of the 2 circles and their overlap to the...

Description Usage Arguments Examples

View source: R/resize_circles.R

Description

Calculates the radii of the two circles relative to a fixed center-to-center distance. The areas of the circles and their overlap will be proportionate the three input values of X alone, Y alone and the intersection of X and Y.

Usage

1
resize_circles(x_only, y_only, overlap, standardDistance = sqrt(0.5))

Arguments

x_only

a numeric value representing the relative size of X excluding its intersection with Y.

y_only

a numeric value representing the relaitive size of Y excluding its intersection with X.

overlap

a numeric value representing the relative size of the intersection of X and Y.

standardDistance

a numeric value specifying the fixed center-to-center distance to which the radii are matched. The default value is that used by plotVenn2d

Examples

1
2
3
4
 plot.new()
plot_venn2d(rep("",3), radius=resize_circles(20,.5, 3), Title=NULL, 
          resizePlot=0.7, labels=c("",""))
          

danielmarcelino/plotVenn documentation built on March 28, 2020, 12:02 a.m.