Using nVennR2 to generate and explore n-dimensional, quasi-proportional Venn diagrams

Victor Quesada

2026-05-28

Introduction

Proportional Venn diagrams show the relationships between several sets in a compact representation. Each set is depicted as a contiguous area proportional to the number of elements it contains, delimited by a closed curve. Those curves may intersect, creating regions that belong to one or more sets. To be accurate, the area of each region should be proportional to the number of elements it contains.

Representing proportional Venn diagrams with more than two sets is not trivial, as the number of potential regions grows exponentially with the number of sets. The nVenn algorithm represents regions as circles with the desired areas and then encloses those circles in curves to create the sets. The resulting diagrams are approximately proportional and can represent an arbitrary number of sets.

Input

To make a Venn diagram, nVennR2 provides the nVennDiagram function. Its input is either a list of lists, a text with the shape of a table or a previously generated nVenn object.

List of lists

This is the same form of input that the first version of nVennR2 used. Each inner list has a name which is interpreted as the name of the set. The inner list itself contains the elements in that set. The algorithm accepts an arbitrary number of sets, although there is a hard limit in the code of 20 sets. Diagrams of that size would take a very long time to build, and probably would be of little use.

library(nVennR2)
exampledf
#> $SAS
#>  [1] "A001" "A003" "A004" "A005" "A006" "A008" "A011" "A012" "A013" "A014"
#> 
#> $PYTHON
#> [1] "A001" "A002" "A003" "A004" "A011" "A012" "A017" "A018"
#> 
#> $R
#>  [1] "A001" "A002" "A004" "A006" "A009" "A010" "A011" "A012" "A013" "A014"
#> [11] "A015" "A016"
myv <- nVennDiagram(exampledf)
#> Step  1  finished.
#> Step  2  finished.
#> Step  3  finished.
#> Step  4  finished.
#> Step  5  finished.
#> Step  6  finished.
#> Step  7  finished.
F;1;L;6.92392;1.72581;6.54547;1.18404;6.17245;0.647943;5.71199;0.159355;5.07257;0.0652693; 4.46649;0.117462;3.85125;0.118768;3.23891;0.107525;2.62532;0.0958165;2.01104;0.102142; 1.41506;0.292868;0.899263;0.652949;0.514172;1.16301;0.305794;1.7792;0.306062;2.44194; 0.526997;3.0803;0.935421;3.63021;1.34974;4.19181;1.7702;4.7653;1.99632;5.4492;2.19131; 6.14434;2.55054;6.79743;3.14478;7.24955;3.87189;7.41842;4.59923;7.24935;5.18941;6.7997; 5.67368;6.26404;6.15597;5.73376;6.63601;5.20913;7.11372;4.69084;7.5892;4.17984;7.82414; 3.51795;7.6981;2.83116;7.30799;2.27454;L;3.12614;-2.4864;2.49446;-2.29338;1.86159; -2.10268;1.22765;-1.91464;0.698351;-1.46114;0.56606;-0.805138;0.498715;-0.154313; 0.429169;0.493929;0.357812;1.13987;0.284615;1.78449;0.285291;2.43903;0.49518;3.06339; 0.896866;3.59192;1.45391;3.96668;2.10817;4.14086;2.79321;4.08884;3.43414;3.8044;3.98396; 3.36777;4.54037;2.92748;5.1014;2.48478;5.66514;2.04109;6.19701;1.52011;6.24477;0.778077; 6.05447;0.114157;5.868;-0.54613;5.68518;-1.20238;5.49769;-1.85157;5.08498;-2.40276; 4.45201;-2.70892;3.75689;-2.68185;L;-0.151394;0.633515;-0.395852;1.23825;-0.64059; 1.84135;-0.885773;2.44322;-1.13167;3.04422;-1.37859;3.64466;-1.62688;4.2448;-1.87686; 4.84497;-2.05926;5.47828;-2.03217;6.13766;-1.79778;6.75495;-1.38041;7.26611;-0.824094; 7.61854;-0.193038;7.77669;0.457962;7.7297;1.10219;7.67305;1.7417;7.61754;2.37587; 7.56215;3.00436;7.50664;3.62732;7.45164;4.24539;7.39837;4.82076;7.1655;5.27977;6.75337; 5.57092;6.21282;5.66267;5.61349;5.54886;5.01673;5.27207;4.4745;4.99426;3.92895;4.81803; 3.33889;4.63946;2.74281;4.45867;2.14035;4.27572;1.53173;3.9973;0.944615;3.61216;0.423931; 3.22481;-0.100083;2.83615;-0.62591;2.62772;-1.2423;2.24184;-1.79897;1.56281;-2.00685; 0.932008;-1.76253;0.578765;-1.19583;0.336369;-0.582922;0.0927728;0.0266369;C;6.37143; 3.403;1.41421;1;2;4.15592;-1.28271;1.41421;2;2;5.25172;1.08682;1;3;1;-0.0140815;5.72451; 2;4;4;3.87093;5.64593;1.73205;5;3;1.60959;-0.947387;1;6;1;2.29851;2.10977;2;7;4; S;SAS;A014;A013;A012;A011;A006;A005;A004;A003;A008;A001;S;PYTHON;A017;A012;A018;A011; A003;A004;A002;A001;S;R;A015;A014;A013;A012;A011;A009;A010;A006;A004;A002;A016;A001; 2 (1) 2 (2) 1 (1, 2) 4 (3) 3 (1, 3) 1 (2, 3) 4 (1, 2, 3) SAS PYTHON R

Each time the algorithm is used, the starting conditions are chosen pseudorandomly. This means that executing nVennDiagram again on the same data will result in a different plot.

myv <- nVennDiagram(exampledf, verbose = F)
F;1;L;-2.00564;-6.08867;-2.7007;-5.93196;-3.29664;-5.5958;-3.88783;-5.26245;-4.47277; -4.931;-5.05055;-4.60151;-5.62111;-4.27499;-6.18538;-3.95306;-6.62018;-3.47263;-6.84928; -2.87439;-6.84925;-2.24043;-6.62657;-1.65289;-6.2145;-1.18453;-5.66767;-0.891257; -5.08559;-0.713346;-4.50461;-0.535031;-3.93666;-0.302935;-3.44535;0.0581524;-2.95361; 0.420746;-2.4414;0.763905;-1.8432;0.938311;-1.21862;0.917714;-0.632071;0.708984;-0.132334; 0.329032;0.229142;-0.19115;0.490465;-0.766215;0.755283;-1.34667;1.02389;-1.93222; 1.29653;-2.52211;1.59904;-3.11658;1.466;-3.8035;0.918721;-4.24317;0.357433;-4.64736; -0.203981;-5.05398;-0.765071;-5.46247;-1.32506;-5.87264;L;1.55185;-3.61902;1.14503; -4.15869;0.488001;-4.33833;-0.124344;-4.07348;-0.674377;-3.75953;-1.22559;-3.44577; -1.8177;-3.18921;-2.41193;-2.93645;-2.95959;-2.58116;-3.36556;-2.07363;-3.59049;-1.46827; -3.61586;-0.8307;-3.44536;-0.221674;-3.09894;0.303273;-2.7102;0.782395;-2.3248;1.25915; -1.94096;1.73467;-1.55984;2.21253;-1.16004;2.67919;-0.566754;2.91518;0.0650602;2.75164; 0.607253;2.46414;1.15919;2.17432;1.71986;1.8824;2.28841;1.58917;2.82342;1.20094;3.13224; 0.613168;3.14381;-0.0675127;2.87663;-0.666663;2.6111;-1.2627;2.34601;-1.85529;2.0808; -2.44473;1.81572;-3.03208;L;-2.39077;-3.19358;-2.9794;-3.47375;-3.56176;-3.76488; -4.14807;-4.05906;-4.76904;-4.31354;-5.44966;-4.32005;-6.09295;-4.06633;-6.59878; -3.57861;-6.88032;-2.9239;-6.90912;-2.20912;-6.9353;-1.48808;-6.96142;-0.763415;-6.98659; -0.0371493;-7.011;0.688693;-7.03574;1.4123;-6.91479;2.12485;-6.55451;2.75252;-6.00505; 3.21362;-5.33774;3.45714;-4.63615;3.46101;-3.95129;3.37983;-3.27153;3.29782;-2.59577; 3.21224;-1.92256;3.12186;-1.25023;3.0274;-0.576887;2.93147;0.0749213;2.76129;0.506269; 2.21348;0.502444;1.51157;0.377195;0.848271;0.251756;0.180316;0.383723;-0.479166;0.468581; -1.14829;0.334985;-1.80312;-0.00214396;-2.38185;-0.501205;-2.81819;-1.10618;-3.07179; -1.75089;-3.13301;C;-2.06709;-4.63176;1.41421;1;2;1.72431;0.248847;1.41421;2;2;0.566699; -3.28585;1;3;1;-4.97583;1.42922;2;4;4;-5.12618;-2.5575;1.73205;5;3;-0.495823;1.86808; 1;6;1;-1.5899;-1.06944;2;7;4; S;SAS;A014;A013;A012;A011;A006;A005;A004;A003;A008;A001;S;PYTHON;A017;A012;A018;A011; A003;A004;A002;A001;S;R;A015;A014;A013;A012;A011;A009;A010;A006;A004;A002;A016;A001; 2 (1) 2 (2) 1 (1, 2) 4 (3) 3 (1, 3) 1 (2, 3) 4 (1, 2, 3) SAS PYTHON R

This feature is very useful for more complex diagrams. It means that we can run the diagram multiple times and choose which one best represents the data. It also means that it is important to store the result of a good diagram, as there is no guarantee that it may be reproduced. In the examples, myv can be stored with saveRDS and recovered with readRDS.

Text

The native input for nVenn2 is a text table. Sets can be defined in rows or columns. If sets are in rows, the first column must contain set names. If sets are in columns, the first row must contain the set names. In most cases, nVennDiagram can guess if sets are in rows or columns. Users can also make sure that this is correct by providing the byCol parameter (1 means by column, 2 means by row).

toVenn <- 'Set1 Set2 Set3
a a b
b q d
c  e'
myv2 <- nVennDiagram(toVenn, byCol = 1, verbose = F)
F;1;L;0.696162;-2.41878;0.267686;-2.77799;-0.159314;-3.135;-0.585689;-3.49112;-1.01218; -3.8482;-1.53761;-4.05867;-2.10745;-4.0486;-2.63297;-3.81412;-3.0312;-3.38979;-3.22584; -2.83835;-3.31749;-2.26852;-3.41175;-1.69067;-3.50832;-1.10481;-3.60702;-0.511493; -3.70793;0.0884405;-3.65185;0.718116;-3.32072;1.2654;-2.78992;1.62851;-2.151;1.72537; -1.5462;1.52475;-0.963628;1.30208;-0.383736;1.082;0.191721;0.864615;0.761442;0.650179; 1.31817;0.405453;1.72228;-0.0368158;1.91298;-0.59994;1.84843;-1.18637;1.56298;-1.69078; 1.12736;-2.05657;L;-3.2287;-6.49333;-3.85207;-6.47723;-4.41086;-6.20192;-4.80269; -5.71913;-4.95677;-5.12376;-4.85098;-4.51806;-4.49964;-4.00572;-4.1448;-3.49684;-3.79017; -2.98717;-3.43582;-2.47702;-3.0822;-1.96656;-2.67208;-1.48637;-2.09908;-1.22568;-1.47002; -1.23153;-0.90127;-1.50333;-0.500876;-1.99038;-0.344494;-2.59472;-0.455931;-3.20888; -0.815236;-3.72491;-1.17271;-4.24012;-1.52863;-4.75392;-1.88284;-5.26582;-2.23489; -5.7758;-2.65405;-6.24549;L;-3.64557;-0.529246;-4.17351;-0.129312;-4.70847;0.274643; -5.24983;0.682187;-5.79672;1.09247;-6.3312;1.53405;-6.69022;2.13113;-6.82974;2.8158; -6.73201;3.50875;-6.40766;4.12937;-5.89397;4.60557;-5.2504;4.88212;-4.55165;4.92706; -3.87908;4.73575;-3.31069;4.33192;-2.91103;3.7648;-2.52155;3.19828;-2.13423;2.63765; -1.74977;2.08382;-1.36841;1.53741;-0.989728;0.998479;-0.805796;0.364577;-0.916912; -0.279725;-1.29261;-0.815577;-1.86385;-1.13374;-2.51385;-1.17396;-3.12475;-0.925313; C;0.475906;-0.755315;1.41421;1;1;-3.50374;-5.0654;1.41421;2;1;-1.79771;-2.64829;1.41421; 3;1;-4.77076;2.8788;2;4;2;-2.27762;0.281167;1.41421;5;1; S;Set1;c;b;a;S;Set2;q;a;S;Set3;e;d;b; 1 (1) 1 (2) 1 (1, 2) 2 (3) 1 (1, 3) Set1 Set2 Set3

Object

The function nVennDiagram also accepts an nVenn object from a previous execution. In that case, it will generate a new Venn diagram with the same data. As in previous cases, the resulting diagram will be different than the previous one.

myv2 <- nVennDiagram(myv2, verbose = F)
F;1;L;-4.72989;-4.04984;-4.99544;-3.46967;-5.19167;-2.87283;-5.39018;-2.27379;-5.59081; -1.67278;-5.79363;-1.07037;-5.96894;-0.446219;-5.83303;0.199538;-5.42605;0.715906; -4.83326;1.00467;-4.17476;0.997916;-3.54682;0.874714;-2.92058;0.753313;-2.29655;0.633467; -1.67505;0.515293;-1.05885;0.381427;-0.545101;-0.0060661;-0.247149;-0.575092;-0.22692; -1.21437;-0.484949;-1.79666;-0.893483;-2.26347;-1.29992;-2.72942;-1.70489;-3.19442; -2.10878;-3.65852;-2.5119;-4.12236;-3.01617;-4.49848;-3.63466;-4.62712;-4.24727;-4.46092; L;0.16034;-4.69723;0.142493;-5.35051;-0.164107;-5.93521;-0.698821;-6.32465;-1.33905; -6.43821;-1.96038;-6.26241;-2.46467;-5.87497;-2.9615;-5.49323;-3.45116;-5.11661;-3.93482; -4.74456;-4.4144;-4.37671;-4.83565;-3.93029;-5.03459;-3.35509;-4.98122;-2.75069;-4.6853; -2.22005;-4.19983;-1.85725;-3.61518;-1.72394;-3.02615;-1.83805;-2.52832;-2.1855;-2.05185; -2.55733;-1.57142;-2.93267;-1.08554;-3.3122;-0.592745;-3.69577;-0.105139;-4.10819; L;-8.01565;0.163061;-8.59721;0.547057;-9.01815;1.1042;-9.2288;1.77015;-9.20494;2.46756; -8.95015;3.11608;-8.49466;3.64181;-7.89129;3.98557;-7.2164;4.10922;-6.53992;4.00484; -5.93127;3.6817;-5.46509;3.17883;-5.04842;2.64871;-4.63405;2.12309;-4.22247;1.60214; -3.81365;1.08587;-3.40696;0.573952;-3.0939;-0.0152352;-3.07926;-0.681873;-3.3476; -1.29018;-3.86102;-1.71395;-4.50692;-1.86863;-5.16224;-1.72064;-5.72142;-1.34784; -6.28716;-0.972961;-6.85879;-0.595888;-7.43531;-0.216978;C;-1.63437;-0.938947;1.41421; 1;1;-1.26505;-4.98524;1.41421;2;1;-3.59122;-3.17794;1.41421;3;1;-7.18788;2.04943; 2;4;2;-4.51842;-0.394485;1.41421;5;1; S;Set1;c;b;a;S;Set2;q;a;S;Set3;e;d;b; 1 (1) 1 (2) 1 (1, 2) 2 (3) 1 (1, 3) Set1 Set2 Set3

Exhaustive mode

In exceptional cases, a user may want to explore the minimization steps in a systematic way. This can be done by setting the maxlevel parameter of nVennDiagram to some value higher than zero. While this procedure may guarantee an optimal diagram if maxlevel is close to the number of regions, it is impractical as the number of regions grows, as the number of combinations to try grows exponentially. Users who want to explore this mode are advised to first get an estimation of the time of computation needed:

estTime <- estimateExhaustiveRunTime(exampledf, 4)
estTime
#> [1] 0.1711493
if (estTime < 10){
  myv2 <- nVennDiagram(exampledf, maxlevel = 4)
}
F;1;L;2.48649;-2.66701;1.88463;-2.70622;1.27615;-2.74848;0.661461;-2.79297;0.0424343; -2.85178;-0.583261;-2.91176;-1.2258;-2.85767;-1.82417;-2.59831;-2.31697;-2.15628; -2.64663;-1.57224;-2.7686;-0.904235;-2.65527;-0.234267;-2.53111;0.432135;-2.40696; 1.10169;-2.28315;1.77157;-2.16031;2.43874;-2.0392;3.10039;-1.83188;3.74747;-1.39271; 4.26429;-0.806769;4.58242;-0.15301;4.66218;0.474137;4.48625;0.986669;4.10553;1.44116; 3.68432;1.89045;3.27055;2.33508;2.86293;2.77586;2.46058;3.21398;2.06294;3.61015;1.61509; 3.79093;1.04458;3.71715;0.459493;3.61718;-0.109397;3.51917;-0.679311;3.42252;-1.25172; 3.32729;-1.82847;3.0513;-2.38584;L;1.92611;-5.21754;1.32082;-5.59832;0.598262;-5.64138; -0.0626247;-5.4395;-0.723939;-5.24009;-1.3857;-5.04307;-2.04794;-4.84873;-2.64365; -4.42055;-2.81015;-3.73406;-2.75731;-3.06724;-2.70619;-2.40109;-2.7395;-1.72564;-2.77402; -1.05041;-2.71321;-0.376183;-2.43201;0.245614;-1.96189;0.739592;-1.35604;1.05079; -0.686176;1.14533;-0.022572;1.01568;0.565516;0.673518;1.04383;0.197725;1.52422;-0.278911; 2.15927;-0.526403;2.81388;-0.721929;3.28175;-1.27657;3.2845;-2.01299;3.03033;-2.65504; 2.77809;-3.29987;2.52763;-3.94689;2.27905;-4.59577;L;-1.2305;-4.76582;-1.86522;-4.90378; -2.4925;-4.76005;-3.13076;-4.61724;-3.78228;-4.47411;-4.44788;-4.33009;-5.12721;-4.18511; -5.7969;-3.92684;-6.34371;-3.44654;-6.69151;-2.79956;-6.79021;-2.07207;-6.62769;-1.35664; -6.22505;-0.743827;-5.72974;-0.228023;-5.24081;0.28292;-4.75856;0.787982;-4.28314; 1.28655;-3.81468;1.77839;-3.35334;2.26357;-2.89933;2.7423;-2.45282;3.21493;-2.01386; 3.68196;-1.58218;4.14413;-1.06814;4.51758;-0.462031;4.68764;0.161807;4.63856;0.729781; 4.37862;1.17505;3.93811;1.44269;3.36685;1.49514;2.73135;1.318;2.11006;1.016;1.5405; 0.87783;0.890889;1.04343;0.237503;1.25922;-0.397553;1.3121;-1.07309;1.14457;-1.7256; 0.780119;-2.28411;0.304772;-2.72867;-0.163137;-3.166;-0.510336;-3.71158;-0.791356; -4.27441;C;2.35178;0.916851;1.41421;1;2;0.876712;-4.21094;1.41421;2;2;2.3106;-1.64832; 1;3;1;-4.73226;-2.16335;2;4;4;-0.288514;2.90406;1.73205;5;3;-1.76213;-3.84884;1;6; 1;-0.740039;-0.893949;2;7;4; S;SAS;A014;A013;A012;A011;A006;A005;A004;A003;A008;A001;S;PYTHON;A017;A012;A018;A011; A003;A004;A002;A001;S;R;A015;A014;A013;A012;A011;A009;A010;A006;A004;A002;A016;A001; 2 (1) 2 (2) 1 (1, 2) 4 (3) 3 (1, 3) 1 (2, 3) 4 (1, 2, 3) SAS PYTHON R

Listing elements

Once the diagram is ready, the object returned can be queried to retrieve the elements in each region. A region will usually be represented with a vector of names of the sets it belongs to. In the example with exampledf, stored in myv, the sets are named SAS, PYTHON and R. To find out which elements belong to SAS and R, but not to PYTHON, the region will be c('SAS', 'R').

getVennRegion(myv, c('SAS', 'R'))
#> [[1]]
#> [1] "A006"
#> 
#> [[2]]
#> [1] "A013"
#> 
#> [[3]]
#> [1] "A014"

We can also list all the elements by region.

regs <- listVennRegions(myv)
regs
#> $`(SAS)`
#> [1] "A005" "A008"
#> 
#> $`(PYTHON)`
#> [1] "A017" "A018"
#> 
#> $`(SAS, PYTHON)`
#> [1] "A003"
#> 
#> $`(R)`
#> [1] "A015" "A009" "A010" "A016"
#> 
#> $`(SAS, R)`
#> [1] "A006" "A013" "A014"
#> 
#> $`(PYTHON, R)`
#> [1] "A002"
#> 
#> $`(SAS, PYTHON, R)`
#> [1] "A001" "A004" "A011" "A012"

Appearance

There are several functions that modify the graphical parameters of the Venn diagram. To see the result of the modifications, we must call plotVenn afterwards. Most parameters can be accessed through setVennOpts except for set colors, which can be edited with setVennPalette and setVennColor or setVennColors. Finally, we can set a list of options and apply them all at once with setVennSkin.

Set graphical options

With setVennOpts, we can tweak the opacity of the fill of sets (opacity), the size of the labels in the sets (fontSize), the width of the line surrounding the sets (lineWidth), the color palette (palette) and whether to show a description of each region (showRegions) or the number of elements in each region (showWeights).

myv2 <- setVennOpts(myv2, opacity = 0.2, lineWidth = 2, palette = 3, showRegions = F)
F;1;L;2.48649;-2.66701;1.88463;-2.70622;1.27615;-2.74848;0.661461;-2.79297;0.0424343; -2.85178;-0.583261;-2.91176;-1.2258;-2.85767;-1.82417;-2.59831;-2.31697;-2.15628; -2.64663;-1.57224;-2.7686;-0.904235;-2.65527;-0.234267;-2.53111;0.432135;-2.40696; 1.10169;-2.28315;1.77157;-2.16031;2.43874;-2.0392;3.10039;-1.83188;3.74747;-1.39271; 4.26429;-0.806769;4.58242;-0.15301;4.66218;0.474137;4.48625;0.986669;4.10553;1.44116; 3.68432;1.89045;3.27055;2.33508;2.86293;2.77586;2.46058;3.21398;2.06294;3.61015;1.61509; 3.79093;1.04458;3.71715;0.459493;3.61718;-0.109397;3.51917;-0.679311;3.42252;-1.25172; 3.32729;-1.82847;3.0513;-2.38584;L;1.92611;-5.21754;1.32082;-5.59832;0.598262;-5.64138; -0.0626247;-5.4395;-0.723939;-5.24009;-1.3857;-5.04307;-2.04794;-4.84873;-2.64365; -4.42055;-2.81015;-3.73406;-2.75731;-3.06724;-2.70619;-2.40109;-2.7395;-1.72564;-2.77402; -1.05041;-2.71321;-0.376183;-2.43201;0.245614;-1.96189;0.739592;-1.35604;1.05079; -0.686176;1.14533;-0.022572;1.01568;0.565516;0.673518;1.04383;0.197725;1.52422;-0.278911; 2.15927;-0.526403;2.81388;-0.721929;3.28175;-1.27657;3.2845;-2.01299;3.03033;-2.65504; 2.77809;-3.29987;2.52763;-3.94689;2.27905;-4.59577;L;-1.2305;-4.76582;-1.86522;-4.90378; -2.4925;-4.76005;-3.13076;-4.61724;-3.78228;-4.47411;-4.44788;-4.33009;-5.12721;-4.18511; -5.7969;-3.92684;-6.34371;-3.44654;-6.69151;-2.79956;-6.79021;-2.07207;-6.62769;-1.35664; -6.22505;-0.743827;-5.72974;-0.228023;-5.24081;0.28292;-4.75856;0.787982;-4.28314; 1.28655;-3.81468;1.77839;-3.35334;2.26357;-2.89933;2.7423;-2.45282;3.21493;-2.01386; 3.68196;-1.58218;4.14413;-1.06814;4.51758;-0.462031;4.68764;0.161807;4.63856;0.729781; 4.37862;1.17505;3.93811;1.44269;3.36685;1.49514;2.73135;1.318;2.11006;1.016;1.5405; 0.87783;0.890889;1.04343;0.237503;1.25922;-0.397553;1.3121;-1.07309;1.14457;-1.7256; 0.780119;-2.28411;0.304772;-2.72867;-0.163137;-3.166;-0.510336;-3.71158;-0.791356; -4.27441;C;2.35178;0.916851;1.41421;1;2;0.876712;-4.21094;1.41421;2;2;2.3106;-1.64832; 1;3;1;-4.73226;-2.16335;2;4;4;-0.288514;2.90406;1.73205;5;3;-1.76213;-3.84884;1;6; 1;-0.740039;-0.893949;2;7;4; S;SAS;A014;A013;A012;A011;A006;A005;A004;A003;A008;A001;S;PYTHON;A017;A012;A018;A011; A003;A004;A002;A001;S;R;A015;A014;A013;A012;A011;A009;A010;A006;A004;A002;A016;A001; 2 2 1 4 3 1 4 SAS PYTHON R

Set colors

The most straightforward way to change a set color is by using setVennColor. WARNING: colors must be formatted as valid svg color expressions. If we pass an invalid svg color, there may be unexpected results.

myv2 <- setVennColor(myv2, "Set2", 'black')
#> Warning in setVennColor(myv2, "Set2", "black"): Set "Set2" does not exist. Use
#> getVennSetNames() to see a list of set names
F;1;L;2.48649;-2.66701;1.88463;-2.70622;1.27615;-2.74848;0.661461;-2.79297;0.0424343; -2.85178;-0.583261;-2.91176;-1.2258;-2.85767;-1.82417;-2.59831;-2.31697;-2.15628; -2.64663;-1.57224;-2.7686;-0.904235;-2.65527;-0.234267;-2.53111;0.432135;-2.40696; 1.10169;-2.28315;1.77157;-2.16031;2.43874;-2.0392;3.10039;-1.83188;3.74747;-1.39271; 4.26429;-0.806769;4.58242;-0.15301;4.66218;0.474137;4.48625;0.986669;4.10553;1.44116; 3.68432;1.89045;3.27055;2.33508;2.86293;2.77586;2.46058;3.21398;2.06294;3.61015;1.61509; 3.79093;1.04458;3.71715;0.459493;3.61718;-0.109397;3.51917;-0.679311;3.42252;-1.25172; 3.32729;-1.82847;3.0513;-2.38584;L;1.92611;-5.21754;1.32082;-5.59832;0.598262;-5.64138; -0.0626247;-5.4395;-0.723939;-5.24009;-1.3857;-5.04307;-2.04794;-4.84873;-2.64365; -4.42055;-2.81015;-3.73406;-2.75731;-3.06724;-2.70619;-2.40109;-2.7395;-1.72564;-2.77402; -1.05041;-2.71321;-0.376183;-2.43201;0.245614;-1.96189;0.739592;-1.35604;1.05079; -0.686176;1.14533;-0.022572;1.01568;0.565516;0.673518;1.04383;0.197725;1.52422;-0.278911; 2.15927;-0.526403;2.81388;-0.721929;3.28175;-1.27657;3.2845;-2.01299;3.03033;-2.65504; 2.77809;-3.29987;2.52763;-3.94689;2.27905;-4.59577;L;-1.2305;-4.76582;-1.86522;-4.90378; -2.4925;-4.76005;-3.13076;-4.61724;-3.78228;-4.47411;-4.44788;-4.33009;-5.12721;-4.18511; -5.7969;-3.92684;-6.34371;-3.44654;-6.69151;-2.79956;-6.79021;-2.07207;-6.62769;-1.35664; -6.22505;-0.743827;-5.72974;-0.228023;-5.24081;0.28292;-4.75856;0.787982;-4.28314; 1.28655;-3.81468;1.77839;-3.35334;2.26357;-2.89933;2.7423;-2.45282;3.21493;-2.01386; 3.68196;-1.58218;4.14413;-1.06814;4.51758;-0.462031;4.68764;0.161807;4.63856;0.729781; 4.37862;1.17505;3.93811;1.44269;3.36685;1.49514;2.73135;1.318;2.11006;1.016;1.5405; 0.87783;0.890889;1.04343;0.237503;1.25922;-0.397553;1.3121;-1.07309;1.14457;-1.7256; 0.780119;-2.28411;0.304772;-2.72867;-0.163137;-3.166;-0.510336;-3.71158;-0.791356; -4.27441;C;2.35178;0.916851;1.41421;1;2;0.876712;-4.21094;1.41421;2;2;2.3106;-1.64832; 1;3;1;-4.73226;-2.16335;2;4;4;-0.288514;2.90406;1.73205;5;3;-1.76213;-3.84884;1;6; 1;-0.740039;-0.893949;2;7;4; S;SAS;A014;A013;A012;A011;A006;A005;A004;A003;A008;A001;S;PYTHON;A017;A012;A018;A011; A003;A004;A002;A001;S;R;A015;A014;A013;A012;A011;A009;A010;A006;A004;A002;A016;A001; 2 2 1 4 3 1 4 SAS PYTHON R

There are also functions to change several colors at once. First, nVenn has four pre-packaged color palettes (0-3). The key to understand the behavior of nVennR2 is that it first applies a palette and then individual colors. This means that set colors take precedence over palettes. Therefore, if we now apply a different palette, Set2 will still be black.

myv2 <- setVennOpts(myv2, palette = 2)
F;1;L;2.48649;-2.66701;1.88463;-2.70622;1.27615;-2.74848;0.661461;-2.79297;0.0424343; -2.85178;-0.583261;-2.91176;-1.2258;-2.85767;-1.82417;-2.59831;-2.31697;-2.15628; -2.64663;-1.57224;-2.7686;-0.904235;-2.65527;-0.234267;-2.53111;0.432135;-2.40696; 1.10169;-2.28315;1.77157;-2.16031;2.43874;-2.0392;3.10039;-1.83188;3.74747;-1.39271; 4.26429;-0.806769;4.58242;-0.15301;4.66218;0.474137;4.48625;0.986669;4.10553;1.44116; 3.68432;1.89045;3.27055;2.33508;2.86293;2.77586;2.46058;3.21398;2.06294;3.61015;1.61509; 3.79093;1.04458;3.71715;0.459493;3.61718;-0.109397;3.51917;-0.679311;3.42252;-1.25172; 3.32729;-1.82847;3.0513;-2.38584;L;1.92611;-5.21754;1.32082;-5.59832;0.598262;-5.64138; -0.0626247;-5.4395;-0.723939;-5.24009;-1.3857;-5.04307;-2.04794;-4.84873;-2.64365; -4.42055;-2.81015;-3.73406;-2.75731;-3.06724;-2.70619;-2.40109;-2.7395;-1.72564;-2.77402; -1.05041;-2.71321;-0.376183;-2.43201;0.245614;-1.96189;0.739592;-1.35604;1.05079; -0.686176;1.14533;-0.022572;1.01568;0.565516;0.673518;1.04383;0.197725;1.52422;-0.278911; 2.15927;-0.526403;2.81388;-0.721929;3.28175;-1.27657;3.2845;-2.01299;3.03033;-2.65504; 2.77809;-3.29987;2.52763;-3.94689;2.27905;-4.59577;L;-1.2305;-4.76582;-1.86522;-4.90378; -2.4925;-4.76005;-3.13076;-4.61724;-3.78228;-4.47411;-4.44788;-4.33009;-5.12721;-4.18511; -5.7969;-3.92684;-6.34371;-3.44654;-6.69151;-2.79956;-6.79021;-2.07207;-6.62769;-1.35664; -6.22505;-0.743827;-5.72974;-0.228023;-5.24081;0.28292;-4.75856;0.787982;-4.28314; 1.28655;-3.81468;1.77839;-3.35334;2.26357;-2.89933;2.7423;-2.45282;3.21493;-2.01386; 3.68196;-1.58218;4.14413;-1.06814;4.51758;-0.462031;4.68764;0.161807;4.63856;0.729781; 4.37862;1.17505;3.93811;1.44269;3.36685;1.49514;2.73135;1.318;2.11006;1.016;1.5405; 0.87783;0.890889;1.04343;0.237503;1.25922;-0.397553;1.3121;-1.07309;1.14457;-1.7256; 0.780119;-2.28411;0.304772;-2.72867;-0.163137;-3.166;-0.510336;-3.71158;-0.791356; -4.27441;C;2.35178;0.916851;1.41421;1;2;0.876712;-4.21094;1.41421;2;2;2.3106;-1.64832; 1;3;1;-4.73226;-2.16335;2;4;4;-0.288514;2.90406;1.73205;5;3;-1.76213;-3.84884;1;6; 1;-0.740039;-0.893949;2;7;4; S;SAS;A014;A013;A012;A011;A006;A005;A004;A003;A008;A001;S;PYTHON;A017;A012;A018;A011; A003;A004;A002;A001;S;R;A015;A014;A013;A012;A011;A009;A010;A006;A004;A002;A016;A001; 2 2 1 4 3 1 4 SAS PYTHON R

To apply a palette and override set colors, we can use setVennPalette. This also deletes any set color previously applied with setVennColor or setVennColors.

myv2 <- setVennPalette(myv2, palette = 2)
F;1;L;2.48649;-2.66701;1.88463;-2.70622;1.27615;-2.74848;0.661461;-2.79297;0.0424343; -2.85178;-0.583261;-2.91176;-1.2258;-2.85767;-1.82417;-2.59831;-2.31697;-2.15628; -2.64663;-1.57224;-2.7686;-0.904235;-2.65527;-0.234267;-2.53111;0.432135;-2.40696; 1.10169;-2.28315;1.77157;-2.16031;2.43874;-2.0392;3.10039;-1.83188;3.74747;-1.39271; 4.26429;-0.806769;4.58242;-0.15301;4.66218;0.474137;4.48625;0.986669;4.10553;1.44116; 3.68432;1.89045;3.27055;2.33508;2.86293;2.77586;2.46058;3.21398;2.06294;3.61015;1.61509; 3.79093;1.04458;3.71715;0.459493;3.61718;-0.109397;3.51917;-0.679311;3.42252;-1.25172; 3.32729;-1.82847;3.0513;-2.38584;L;1.92611;-5.21754;1.32082;-5.59832;0.598262;-5.64138; -0.0626247;-5.4395;-0.723939;-5.24009;-1.3857;-5.04307;-2.04794;-4.84873;-2.64365; -4.42055;-2.81015;-3.73406;-2.75731;-3.06724;-2.70619;-2.40109;-2.7395;-1.72564;-2.77402; -1.05041;-2.71321;-0.376183;-2.43201;0.245614;-1.96189;0.739592;-1.35604;1.05079; -0.686176;1.14533;-0.022572;1.01568;0.565516;0.673518;1.04383;0.197725;1.52422;-0.278911; 2.15927;-0.526403;2.81388;-0.721929;3.28175;-1.27657;3.2845;-2.01299;3.03033;-2.65504; 2.77809;-3.29987;2.52763;-3.94689;2.27905;-4.59577;L;-1.2305;-4.76582;-1.86522;-4.90378; -2.4925;-4.76005;-3.13076;-4.61724;-3.78228;-4.47411;-4.44788;-4.33009;-5.12721;-4.18511; -5.7969;-3.92684;-6.34371;-3.44654;-6.69151;-2.79956;-6.79021;-2.07207;-6.62769;-1.35664; -6.22505;-0.743827;-5.72974;-0.228023;-5.24081;0.28292;-4.75856;0.787982;-4.28314; 1.28655;-3.81468;1.77839;-3.35334;2.26357;-2.89933;2.7423;-2.45282;3.21493;-2.01386; 3.68196;-1.58218;4.14413;-1.06814;4.51758;-0.462031;4.68764;0.161807;4.63856;0.729781; 4.37862;1.17505;3.93811;1.44269;3.36685;1.49514;2.73135;1.318;2.11006;1.016;1.5405; 0.87783;0.890889;1.04343;0.237503;1.25922;-0.397553;1.3121;-1.07309;1.14457;-1.7256; 0.780119;-2.28411;0.304772;-2.72867;-0.163137;-3.166;-0.510336;-3.71158;-0.791356; -4.27441;C;2.35178;0.916851;1.41421;1;2;0.876712;-4.21094;1.41421;2;2;2.3106;-1.64832; 1;3;1;-4.73226;-2.16335;2;4;4;-0.288514;2.90406;1.73205;5;3;-1.76213;-3.84884;1;6; 1;-0.740039;-0.893949;2;7;4; S;SAS;A014;A013;A012;A011;A006;A005;A004;A003;A008;A001;S;PYTHON;A017;A012;A018;A011; A003;A004;A002;A001;S;R;A015;A014;A013;A012;A011;A009;A010;A006;A004;A002;A016;A001; 2 2 1 4 3 1 4 SAS PYTHON R

The other way to change several colors at once is setVennColors. When using this function, it is understood that we want to set a theme. That is why this function resets any unspecified color to the palette we are using. If a vector with svg colors is passed, they will be applied to each set in the same order. If there are more sets than colors, the remaining sets keep their previous color.

colorVector <- c("red", "grey")
myv2 <- setVennColors(myv2, colorVector)
#> Warning in setVennColor(nVennObj, nm, vl, plot = FALSE): Set "SAS" does not
#> exist. Use getVennSetNames() to see a list of set names
#> Warning in setVennColor(nVennObj, nm, vl, plot = FALSE): Set "PYTHON" does not
#> exist. Use getVennSetNames() to see a list of set names
F;1;L;2.48649;-2.66701;1.88463;-2.70622;1.27615;-2.74848;0.661461;-2.79297;0.0424343; -2.85178;-0.583261;-2.91176;-1.2258;-2.85767;-1.82417;-2.59831;-2.31697;-2.15628; -2.64663;-1.57224;-2.7686;-0.904235;-2.65527;-0.234267;-2.53111;0.432135;-2.40696; 1.10169;-2.28315;1.77157;-2.16031;2.43874;-2.0392;3.10039;-1.83188;3.74747;-1.39271; 4.26429;-0.806769;4.58242;-0.15301;4.66218;0.474137;4.48625;0.986669;4.10553;1.44116; 3.68432;1.89045;3.27055;2.33508;2.86293;2.77586;2.46058;3.21398;2.06294;3.61015;1.61509; 3.79093;1.04458;3.71715;0.459493;3.61718;-0.109397;3.51917;-0.679311;3.42252;-1.25172; 3.32729;-1.82847;3.0513;-2.38584;L;1.92611;-5.21754;1.32082;-5.59832;0.598262;-5.64138; -0.0626247;-5.4395;-0.723939;-5.24009;-1.3857;-5.04307;-2.04794;-4.84873;-2.64365; -4.42055;-2.81015;-3.73406;-2.75731;-3.06724;-2.70619;-2.40109;-2.7395;-1.72564;-2.77402; -1.05041;-2.71321;-0.376183;-2.43201;0.245614;-1.96189;0.739592;-1.35604;1.05079; -0.686176;1.14533;-0.022572;1.01568;0.565516;0.673518;1.04383;0.197725;1.52422;-0.278911; 2.15927;-0.526403;2.81388;-0.721929;3.28175;-1.27657;3.2845;-2.01299;3.03033;-2.65504; 2.77809;-3.29987;2.52763;-3.94689;2.27905;-4.59577;L;-1.2305;-4.76582;-1.86522;-4.90378; -2.4925;-4.76005;-3.13076;-4.61724;-3.78228;-4.47411;-4.44788;-4.33009;-5.12721;-4.18511; -5.7969;-3.92684;-6.34371;-3.44654;-6.69151;-2.79956;-6.79021;-2.07207;-6.62769;-1.35664; -6.22505;-0.743827;-5.72974;-0.228023;-5.24081;0.28292;-4.75856;0.787982;-4.28314; 1.28655;-3.81468;1.77839;-3.35334;2.26357;-2.89933;2.7423;-2.45282;3.21493;-2.01386; 3.68196;-1.58218;4.14413;-1.06814;4.51758;-0.462031;4.68764;0.161807;4.63856;0.729781; 4.37862;1.17505;3.93811;1.44269;3.36685;1.49514;2.73135;1.318;2.11006;1.016;1.5405; 0.87783;0.890889;1.04343;0.237503;1.25922;-0.397553;1.3121;-1.07309;1.14457;-1.7256; 0.780119;-2.28411;0.304772;-2.72867;-0.163137;-3.166;-0.510336;-3.71158;-0.791356; -4.27441;C;2.35178;0.916851;1.41421;1;2;0.876712;-4.21094;1.41421;2;2;2.3106;-1.64832; 1;3;1;-4.73226;-2.16335;2;4;4;-0.288514;2.90406;1.73205;5;3;-1.76213;-3.84884;1;6; 1;-0.740039;-0.893949;2;7;4; S;SAS;A014;A013;A012;A011;A006;A005;A004;A003;A008;A001;S;PYTHON;A017;A012;A018;A011; A003;A004;A002;A001;S;R;A015;A014;A013;A012;A011;A009;A010;A006;A004;A002;A016;A001; 2 2 1 4 3 1 4 SAS PYTHON R

This function also accepts a list, whose names must indicate set names.

colorList <- list(Set1="blue", Set3="#00ff11")
myv2 <- setVennColors(myv2, colorList)
#> Warning in setVennColor(nVennObj, nm, colorList[[nm]], plot = FALSE): Set
#> "Set1" does not exist. Use getVennSetNames() to see a list of set names
#> Warning in setVennColor(nVennObj, nm, colorList[[nm]], plot = FALSE): Set
#> "Set3" does not exist. Use getVennSetNames() to see a list of set names
F;1;L;2.48649;-2.66701;1.88463;-2.70622;1.27615;-2.74848;0.661461;-2.79297;0.0424343; -2.85178;-0.583261;-2.91176;-1.2258;-2.85767;-1.82417;-2.59831;-2.31697;-2.15628; -2.64663;-1.57224;-2.7686;-0.904235;-2.65527;-0.234267;-2.53111;0.432135;-2.40696; 1.10169;-2.28315;1.77157;-2.16031;2.43874;-2.0392;3.10039;-1.83188;3.74747;-1.39271; 4.26429;-0.806769;4.58242;-0.15301;4.66218;0.474137;4.48625;0.986669;4.10553;1.44116; 3.68432;1.89045;3.27055;2.33508;2.86293;2.77586;2.46058;3.21398;2.06294;3.61015;1.61509; 3.79093;1.04458;3.71715;0.459493;3.61718;-0.109397;3.51917;-0.679311;3.42252;-1.25172; 3.32729;-1.82847;3.0513;-2.38584;L;1.92611;-5.21754;1.32082;-5.59832;0.598262;-5.64138; -0.0626247;-5.4395;-0.723939;-5.24009;-1.3857;-5.04307;-2.04794;-4.84873;-2.64365; -4.42055;-2.81015;-3.73406;-2.75731;-3.06724;-2.70619;-2.40109;-2.7395;-1.72564;-2.77402; -1.05041;-2.71321;-0.376183;-2.43201;0.245614;-1.96189;0.739592;-1.35604;1.05079; -0.686176;1.14533;-0.022572;1.01568;0.565516;0.673518;1.04383;0.197725;1.52422;-0.278911; 2.15927;-0.526403;2.81388;-0.721929;3.28175;-1.27657;3.2845;-2.01299;3.03033;-2.65504; 2.77809;-3.29987;2.52763;-3.94689;2.27905;-4.59577;L;-1.2305;-4.76582;-1.86522;-4.90378; -2.4925;-4.76005;-3.13076;-4.61724;-3.78228;-4.47411;-4.44788;-4.33009;-5.12721;-4.18511; -5.7969;-3.92684;-6.34371;-3.44654;-6.69151;-2.79956;-6.79021;-2.07207;-6.62769;-1.35664; -6.22505;-0.743827;-5.72974;-0.228023;-5.24081;0.28292;-4.75856;0.787982;-4.28314; 1.28655;-3.81468;1.77839;-3.35334;2.26357;-2.89933;2.7423;-2.45282;3.21493;-2.01386; 3.68196;-1.58218;4.14413;-1.06814;4.51758;-0.462031;4.68764;0.161807;4.63856;0.729781; 4.37862;1.17505;3.93811;1.44269;3.36685;1.49514;2.73135;1.318;2.11006;1.016;1.5405; 0.87783;0.890889;1.04343;0.237503;1.25922;-0.397553;1.3121;-1.07309;1.14457;-1.7256; 0.780119;-2.28411;0.304772;-2.72867;-0.163137;-3.166;-0.510336;-3.71158;-0.791356; -4.27441;C;2.35178;0.916851;1.41421;1;2;0.876712;-4.21094;1.41421;2;2;2.3106;-1.64832; 1;3;1;-4.73226;-2.16335;2;4;4;-0.288514;2.90406;1.73205;5;3;-1.76213;-3.84884;1;6; 1;-0.740039;-0.893949;2;7;4; S;SAS;A014;A013;A012;A011;A006;A005;A004;A003;A008;A001;S;PYTHON;A017;A012;A018;A011; A003;A004;A002;A001;S;R;A015;A014;A013;A012;A011;A009;A010;A006;A004;A002;A016;A001; 2 2 1 4 3 1 4 SAS PYTHON R

Notice that the color of Set2 has been reset to its default in palette 2.

Set skin

Plots generated by nVenn have a defult graphical theme. In addition to changing each parameter, we can define a custom theme and apply it at once. To do this, we simply generate a list with all the parameters we may want to set (those in setVennOpts plus colors) and use setVennSkin. The logical way to use colors in this case is to pass a vector, so that we can apply the theme to any diagram, regardless of the names of the sets.

mytheme <- list(opacity=0.2, lineWidth=2, fontSize=16, showRegions=F, colors=c("red", "green", "blue", "black", "#ffff00"))
myv2 <- setVennSkin(myv2, mytheme)
#> Warning in setVennColor(nVennObj, nm, vl, plot = FALSE): Set "SAS" does not
#> exist. Use getVennSetNames() to see a list of set names
#> Warning in setVennColor(nVennObj, nm, vl, plot = FALSE): Set "PYTHON" does not
#> exist. Use getVennSetNames() to see a list of set names
#> Warning in setVennColor(nVennObj, nm, vl, plot = FALSE): Set "R" does not
#> exist. Use getVennSetNames() to see a list of set names
myv <- setVennSkin(myv, mytheme)
#> Warning in setVennColor(nVennObj, nm, vl, plot = FALSE): Set "SAS" does not
#> exist. Use getVennSetNames() to see a list of set names
#> Warning in setVennColor(nVennObj, nm, vl, plot = FALSE): Set "PYTHON" does not
#> exist. Use getVennSetNames() to see a list of set names
#> Warning in setVennColor(nVennObj, nm, vl, plot = FALSE): Set "R" does not
#> exist. Use getVennSetNames() to see a list of set names
F;1;L;2.48649;-2.66701;1.88463;-2.70622;1.27615;-2.74848;0.661461;-2.79297;0.0424343; -2.85178;-0.583261;-2.91176;-1.2258;-2.85767;-1.82417;-2.59831;-2.31697;-2.15628; -2.64663;-1.57224;-2.7686;-0.904235;-2.65527;-0.234267;-2.53111;0.432135;-2.40696; 1.10169;-2.28315;1.77157;-2.16031;2.43874;-2.0392;3.10039;-1.83188;3.74747;-1.39271; 4.26429;-0.806769;4.58242;-0.15301;4.66218;0.474137;4.48625;0.986669;4.10553;1.44116; 3.68432;1.89045;3.27055;2.33508;2.86293;2.77586;2.46058;3.21398;2.06294;3.61015;1.61509; 3.79093;1.04458;3.71715;0.459493;3.61718;-0.109397;3.51917;-0.679311;3.42252;-1.25172; 3.32729;-1.82847;3.0513;-2.38584;L;1.92611;-5.21754;1.32082;-5.59832;0.598262;-5.64138; -0.0626247;-5.4395;-0.723939;-5.24009;-1.3857;-5.04307;-2.04794;-4.84873;-2.64365; -4.42055;-2.81015;-3.73406;-2.75731;-3.06724;-2.70619;-2.40109;-2.7395;-1.72564;-2.77402; -1.05041;-2.71321;-0.376183;-2.43201;0.245614;-1.96189;0.739592;-1.35604;1.05079; -0.686176;1.14533;-0.022572;1.01568;0.565516;0.673518;1.04383;0.197725;1.52422;-0.278911; 2.15927;-0.526403;2.81388;-0.721929;3.28175;-1.27657;3.2845;-2.01299;3.03033;-2.65504; 2.77809;-3.29987;2.52763;-3.94689;2.27905;-4.59577;L;-1.2305;-4.76582;-1.86522;-4.90378; -2.4925;-4.76005;-3.13076;-4.61724;-3.78228;-4.47411;-4.44788;-4.33009;-5.12721;-4.18511; -5.7969;-3.92684;-6.34371;-3.44654;-6.69151;-2.79956;-6.79021;-2.07207;-6.62769;-1.35664; -6.22505;-0.743827;-5.72974;-0.228023;-5.24081;0.28292;-4.75856;0.787982;-4.28314; 1.28655;-3.81468;1.77839;-3.35334;2.26357;-2.89933;2.7423;-2.45282;3.21493;-2.01386; 3.68196;-1.58218;4.14413;-1.06814;4.51758;-0.462031;4.68764;0.161807;4.63856;0.729781; 4.37862;1.17505;3.93811;1.44269;3.36685;1.49514;2.73135;1.318;2.11006;1.016;1.5405; 0.87783;0.890889;1.04343;0.237503;1.25922;-0.397553;1.3121;-1.07309;1.14457;-1.7256; 0.780119;-2.28411;0.304772;-2.72867;-0.163137;-3.166;-0.510336;-3.71158;-0.791356; -4.27441;C;2.35178;0.916851;1.41421;1;2;0.876712;-4.21094;1.41421;2;2;2.3106;-1.64832; 1;3;1;-4.73226;-2.16335;2;4;4;-0.288514;2.90406;1.73205;5;3;-1.76213;-3.84884;1;6; 1;-0.740039;-0.893949;2;7;4; S;SAS;A014;A013;A012;A011;A006;A005;A004;A003;A008;A001;S;PYTHON;A017;A012;A018;A011; A003;A004;A002;A001;S;R;A015;A014;A013;A012;A011;A009;A010;A006;A004;A002;A016;A001; 2 2 1 4 3 1 4 SAS PYTHON R
F;1;L;-2.00564;-6.08867;-2.7007;-5.93196;-3.29664;-5.5958;-3.88783;-5.26245;-4.47277; -4.931;-5.05055;-4.60151;-5.62111;-4.27499;-6.18538;-3.95306;-6.62018;-3.47263;-6.84928; -2.87439;-6.84925;-2.24043;-6.62657;-1.65289;-6.2145;-1.18453;-5.66767;-0.891257; -5.08559;-0.713346;-4.50461;-0.535031;-3.93666;-0.302935;-3.44535;0.0581524;-2.95361; 0.420746;-2.4414;0.763905;-1.8432;0.938311;-1.21862;0.917714;-0.632071;0.708984;-0.132334; 0.329032;0.229142;-0.19115;0.490465;-0.766215;0.755283;-1.34667;1.02389;-1.93222; 1.29653;-2.52211;1.59904;-3.11658;1.466;-3.8035;0.918721;-4.24317;0.357433;-4.64736; -0.203981;-5.05398;-0.765071;-5.46247;-1.32506;-5.87264;L;1.55185;-3.61902;1.14503; -4.15869;0.488001;-4.33833;-0.124344;-4.07348;-0.674377;-3.75953;-1.22559;-3.44577; -1.8177;-3.18921;-2.41193;-2.93645;-2.95959;-2.58116;-3.36556;-2.07363;-3.59049;-1.46827; -3.61586;-0.8307;-3.44536;-0.221674;-3.09894;0.303273;-2.7102;0.782395;-2.3248;1.25915; -1.94096;1.73467;-1.55984;2.21253;-1.16004;2.67919;-0.566754;2.91518;0.0650602;2.75164; 0.607253;2.46414;1.15919;2.17432;1.71986;1.8824;2.28841;1.58917;2.82342;1.20094;3.13224; 0.613168;3.14381;-0.0675127;2.87663;-0.666663;2.6111;-1.2627;2.34601;-1.85529;2.0808; -2.44473;1.81572;-3.03208;L;-2.39077;-3.19358;-2.9794;-3.47375;-3.56176;-3.76488; -4.14807;-4.05906;-4.76904;-4.31354;-5.44966;-4.32005;-6.09295;-4.06633;-6.59878; -3.57861;-6.88032;-2.9239;-6.90912;-2.20912;-6.9353;-1.48808;-6.96142;-0.763415;-6.98659; -0.0371493;-7.011;0.688693;-7.03574;1.4123;-6.91479;2.12485;-6.55451;2.75252;-6.00505; 3.21362;-5.33774;3.45714;-4.63615;3.46101;-3.95129;3.37983;-3.27153;3.29782;-2.59577; 3.21224;-1.92256;3.12186;-1.25023;3.0274;-0.576887;2.93147;0.0749213;2.76129;0.506269; 2.21348;0.502444;1.51157;0.377195;0.848271;0.251756;0.180316;0.383723;-0.479166;0.468581; -1.14829;0.334985;-1.80312;-0.00214396;-2.38185;-0.501205;-2.81819;-1.10618;-3.07179; -1.75089;-3.13301;C;-2.06709;-4.63176;1.41421;1;2;1.72431;0.248847;1.41421;2;2;0.566699; -3.28585;1;3;1;-4.97583;1.42922;2;4;4;-5.12618;-2.5575;1.73205;5;3;-0.495823;1.86808; 1;6;1;-1.5899;-1.06944;2;7;4; S;SAS;A014;A013;A012;A011;A006;A005;A004;A003;A008;A001;S;PYTHON;A017;A012;A018;A011; A003;A004;A002;A001;S;R;A015;A014;A013;A012;A011;A009;A010;A006;A004;A002;A016;A001; 2 2 1 4 3 1 4 SAS PYTHON R

Rotate the diagram

We can also rotate the plot with rotateVenn. The angle is interpreted in degrees and it is applied counterclockwise.

plotVenn(myv2)
F;1;L;2.48649;-2.66701;1.88463;-2.70622;1.27615;-2.74848;0.661461;-2.79297;0.0424343; -2.85178;-0.583261;-2.91176;-1.2258;-2.85767;-1.82417;-2.59831;-2.31697;-2.15628; -2.64663;-1.57224;-2.7686;-0.904235;-2.65527;-0.234267;-2.53111;0.432135;-2.40696; 1.10169;-2.28315;1.77157;-2.16031;2.43874;-2.0392;3.10039;-1.83188;3.74747;-1.39271; 4.26429;-0.806769;4.58242;-0.15301;4.66218;0.474137;4.48625;0.986669;4.10553;1.44116; 3.68432;1.89045;3.27055;2.33508;2.86293;2.77586;2.46058;3.21398;2.06294;3.61015;1.61509; 3.79093;1.04458;3.71715;0.459493;3.61718;-0.109397;3.51917;-0.679311;3.42252;-1.25172; 3.32729;-1.82847;3.0513;-2.38584;L;1.92611;-5.21754;1.32082;-5.59832;0.598262;-5.64138; -0.0626247;-5.4395;-0.723939;-5.24009;-1.3857;-5.04307;-2.04794;-4.84873;-2.64365; -4.42055;-2.81015;-3.73406;-2.75731;-3.06724;-2.70619;-2.40109;-2.7395;-1.72564;-2.77402; -1.05041;-2.71321;-0.376183;-2.43201;0.245614;-1.96189;0.739592;-1.35604;1.05079; -0.686176;1.14533;-0.022572;1.01568;0.565516;0.673518;1.04383;0.197725;1.52422;-0.278911; 2.15927;-0.526403;2.81388;-0.721929;3.28175;-1.27657;3.2845;-2.01299;3.03033;-2.65504; 2.77809;-3.29987;2.52763;-3.94689;2.27905;-4.59577;L;-1.2305;-4.76582;-1.86522;-4.90378; -2.4925;-4.76005;-3.13076;-4.61724;-3.78228;-4.47411;-4.44788;-4.33009;-5.12721;-4.18511; -5.7969;-3.92684;-6.34371;-3.44654;-6.69151;-2.79956;-6.79021;-2.07207;-6.62769;-1.35664; -6.22505;-0.743827;-5.72974;-0.228023;-5.24081;0.28292;-4.75856;0.787982;-4.28314; 1.28655;-3.81468;1.77839;-3.35334;2.26357;-2.89933;2.7423;-2.45282;3.21493;-2.01386; 3.68196;-1.58218;4.14413;-1.06814;4.51758;-0.462031;4.68764;0.161807;4.63856;0.729781; 4.37862;1.17505;3.93811;1.44269;3.36685;1.49514;2.73135;1.318;2.11006;1.016;1.5405; 0.87783;0.890889;1.04343;0.237503;1.25922;-0.397553;1.3121;-1.07309;1.14457;-1.7256; 0.780119;-2.28411;0.304772;-2.72867;-0.163137;-3.166;-0.510336;-3.71158;-0.791356; -4.27441;C;2.35178;0.916851;1.41421;1;2;0.876712;-4.21094;1.41421;2;2;2.3106;-1.64832; 1;3;1;-4.73226;-2.16335;2;4;4;-0.288514;2.90406;1.73205;5;3;-1.76213;-3.84884;1;6; 1;-0.740039;-0.893949;2;7;4; S;SAS;A014;A013;A012;A011;A006;A005;A004;A003;A008;A001;S;PYTHON;A017;A012;A018;A011; A003;A004;A002;A001;S;R;A015;A014;A013;A012;A011;A009;A010;A006;A004;A002;A016;A001; 2 2 1 4 3 1 4 SAS PYTHON R
myv2 <- rotateVenn(myv2, 30)
#> Warning in setVennColor(nVennObj, nm, colorList[[nm]], plot = FALSE): Set "SAS"
#> does not exist. Use getVennSetNames() to see a list of set names
#> Warning in setVennColor(nVennObj, nm, colorList[[nm]], plot = FALSE): Set
#> "PYTHON" does not exist. Use getVennSetNames() to see a list of set names
#> Warning in setVennColor(nVennObj, nm, colorList[[nm]], plot = FALSE): Set "R"
#> does not exist. Use getVennSetNames() to see a list of set names
F;1;L;2.35155;-3.86624;1.81072;-3.59927;1.26263;-3.33163;0.70805;-3.06281;0.142552; -2.80423;-0.429306;-2.54333;-0.958716;-2.17522;-1.34724;-1.65142;-1.553;-1.02221; -1.54648;-0.351586;-1.3181;0.287909;-0.884972;0.811453;-0.444245;1.32649;-0.00195092; 1.84427;0.440212;2.3625;0.880179;2.87887;1.31589;3.39132;1.81897;3.84804;2.45772; 4.07604;3.12422;4.05858;3.73027;3.80077;4.18543;3.33484;4.43894;2.74886;4.62193;2.15683; 4.80415;1.57385;4.9854;0.99853;5.16595;0.429695;5.34655;-0.133732;5.46572;-0.719666; 5.33702;-1.30413;4.98059;-1.77394;4.60956;-2.21663;4.23973;-2.66119;3.86982;-3.10858; 3.49898;-3.56045;2.98128;-3.90515;L;0.590984;-5.79488;-0.123603;-5.822;-0.770887; -5.49801;-1.24229;-4.99273;-1.7153;-4.48938;-2.18989;-3.98788;-2.66624;-3.48845;-2.96805; -2.81978;-2.769;-2.14202;-2.38983;-1.59095;-2.01248;-1.03961;-1.7036;-0.437999;-1.39588; 0.164027;-1.00611;0.71752;-0.451683;1.11541;0.202442;1.30815;0.882722;1.27473;1.51011; 1.02167;2.01998;0.57759;2.3582;-0.0127748;2.53454;-0.663981;2.71225;-1.31695;3.13847; -1.84881;3.60762;-2.34545;3.73549;-3.05972;3.36966;-3.69885;2.82852;-4.1278;2.28765; -4.56012;1.74724;-4.99522;1.20752;-5.43288;L;-1.91686;-3.82537;-2.53552;-3.62749; -3.0069;-3.18937;-3.48824;-2.74657;-3.98091;-2.29685;-4.48533;-1.83933;-5.00116;-1.37411; -5.45199;-0.815595;-5.68539;-0.126238;-5.66311;0.607964;-5.38484;1.28734;-4.88637; 1.82566;-4.23127;2.15505;-3.54442;2.3541;-2.86552;2.55212;-2.19535;2.74839;-1.53434; 2.94245;-0.882722;3.13417;-0.2406;3.32368;0.391949;3.51127;1.01495;3.69732;1.62862; 3.8823;2.23355;4.06671;2.86545;4.13311;3.47538;3.97733;3.9911;3.62291;4.35301;3.11381; 4.51837;2.50968;4.46452;1.88113;4.1922;1.30455;3.72814;0.855065;3.18182;0.512812; 2.73736;0.0193169;2.55408;-0.629332;2.42343;-1.2872;2.13146;-1.89867;1.66012;-2.38; 1.06524;-2.68146;0.431298;-2.82878;-0.192588;-2.97357;-0.766061;-3.27246;-1.29085; -3.61937;C;4.02682;-0.695174;1.41421;1;2;0.185478;-4.39844;1.41421;2;2;2.70857;-2.89609; 1;3;1;-3.64824;0.179313;2;4;4;2.73386;2.34595;1.73205;5;3;-1.91878;-2.76543;1;6;1; 0.443826;-0.717464;2;7;4; S;SAS;A014;A013;A012;A011;A006;A005;A004;A003;A008;A001;S;PYTHON;A017;A012;A018;A011; A003;A004;A002;A001;S;R;A015;A014;A013;A012;A011;A009;A010;A006;A004;A002;A016;A001; 2 2 1 4 3 1 4 SAS PYTHON R