{"id":18109,"date":"2020-11-21T15:00:26","date_gmt":"2020-11-21T14:00:26","guid":{"rendered":"https:\/\/www.datanovia.com\/en\/?p=18109"},"modified":"2020-11-21T15:00:26","modified_gmt":"2020-11-21T14:00:26","slug":"beautiful-ggplot-venn-diagram-with-r","status":"publish","type":"post","link":"https:\/\/www.datanovia.com\/en\/blog\/beautiful-ggplot-venn-diagram-with-r\/","title":{"rendered":"Beautiful GGPlot Venn Diagram with R"},"content":{"rendered":"<div id=\"rdoc\">\n<div id=\"introduction\" class=\"section level2\">\n<h2>Introduction<\/h2>\n<p>This article describes how to create a beautiful <strong>ggplot Venn diagram<\/strong>. There are multiple extensions of the <strong>ggplot2<\/strong> R package for creating Venn diagram in R, including the <code>ggvenn<\/code> and the <code>ggVennDiagram<\/code> packages.<\/p>\n<p>The two packages enable to create Venn plots with 2 to 4 sets or dimensions. The main difference between the two packages is that the <code>ggvenn<\/code> package assigns a specific color to each set. The <code>ggVennDiagram<\/code> package maps the fill color of each region to quantity, allowing us to visually observe the differences between different parts.<\/p>\n<p>You will learn how to create Venn diagrams in R using both <code>ggvenn<\/code> and <code>ggVennDiagram<\/code> functions.<\/p>\n<\/div>\n<p>Contents:<\/p>\n<div id=\"TOC\">\n<ul>\n<li><a href=\"#create-a-demo-data\">Create a demo data<\/a><\/li>\n<li><a href=\"#create-venn-diagrams-using-the-ggvenndiagram-r-package\">Create Venn diagrams using the ggVennDiagram R package<\/a>\n<ul>\n<li><a href=\"#install-and-load-the-ggvenndiagram-package\">Install and load the ggVennDiagram package<\/a><\/li>\n<li><a href=\"#four-dimension-venn-plot\">Four dimension Venn plot<\/a><\/li>\n<li><a href=\"#three-dimension-venn-plot\">Three dimension Venn plot<\/a><\/li>\n<li><a href=\"#two-dimension-venn-plot\">Two dimension Venn plot<\/a><\/li>\n<\/ul>\n<\/li>\n<li><a href=\"#create-venn-diagrams-using-the-ggven-r-package\">Create Venn diagrams using the ggven R package<\/a>\n<ul>\n<li><a href=\"#install-and-load-the-ggvenn-package\">Install and load the ggvenn package<\/a><\/li>\n<li><a href=\"#four-dimension-venn-plot-1\">Four dimension Venn plot<\/a><\/li>\n<li><a href=\"#three-dimension-venn-plot-1\">Three dimension Venn plot<\/a><\/li>\n<li><a href=\"#two-dimension-venn-plot-1\">Two dimension Venn plot<\/a><\/li>\n<\/ul>\n<\/li>\n<li><a href=\"#conclusion\">Conclusion<\/a><\/li>\n<\/ul>\n<\/div>\n<div id=\"create-a-demo-data\" class=\"section level2\">\n<h2>Create a demo data<\/h2>\n<pre class=\"r\"><code>set.seed(20190708)\r\ngenes &lt;- paste(\"gene\",1:1000,sep=\"\")\r\nx &lt;- list(\r\n  A = sample(genes,300), \r\n  B = sample(genes,525), \r\n  C = sample(genes,440),\r\n  D = sample(genes,350)\r\n  )<\/code><\/pre>\n<\/div>\n<div id=\"create-venn-diagrams-using-the-ggvenndiagram-r-package\" class=\"section level2\">\n<h2>Create Venn diagrams using the ggVennDiagram R package<\/h2>\n<div id=\"install-and-load-the-ggvenndiagram-package\" class=\"section level3\">\n<h3>Install and load the ggVennDiagram package<\/h3>\n<p>Install the latest development version:<\/p>\n<pre class=\"r\"><code>if (!require(devtools)) install.packages(\"devtools\")\r\ndevtools::install_github(\"gaospecial\/ggVennDiagram\")<\/code><\/pre>\n<p>Load:<\/p>\n<pre class=\"r\"><code>library(\"ggVennDiagram\")<\/code><\/pre>\n<\/div>\n<div id=\"four-dimension-venn-plot\" class=\"section level3\">\n<h3>Four dimension Venn plot<\/h3>\n<pre class=\"r\"><code>library(\"ggVennDiagram\")\r\n# Default plot\r\nggVennDiagram(x)<\/code><\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/dn-tutorials\/r-tutorial\/figures\/ggplot-venn-diagram-with-r-four-dimension-venn-plot-1.png\" width=\"576\" \/><\/p>\n<pre class=\"r\"><code># Remove labels background color\r\nggVennDiagram(x, label_alpha = 0)<\/code><\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/dn-tutorials\/r-tutorial\/figures\/ggplot-venn-diagram-with-r-four-dimension-venn-plot-2.png\" width=\"576\" \/><\/p>\n<pre class=\"r\"><code># Change category names\r\n# Change the gradient fill color\r\nggVennDiagram(\r\n  x, label_alpha = 0,\r\n  category.names = c(\"Stage 1\",\"Stage 2\",\"Stage 3\", \"Stage4\")\r\n  ) +\r\n  ggplot2::scale_fill_gradient(low=\"blue\",high = \"yellow\")<\/code><\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/dn-tutorials\/r-tutorial\/figures\/ggplot-venn-diagram-with-r-four-dimension-venn-plot-3.png\" width=\"576\" \/><\/p>\n<\/div>\n<div id=\"three-dimension-venn-plot\" class=\"section level3\">\n<h3>Three dimension Venn plot<\/h3>\n<pre class=\"r\"><code>ggVennDiagram(x[1:3], label_alpha = 0)<\/code><\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/dn-tutorials\/r-tutorial\/figures\/ggplot-venn-diagram-with-r-three-dimension-venn-plot-1.png\" width=\"384\" \/><\/p>\n<\/div>\n<div id=\"two-dimension-venn-plot\" class=\"section level3\">\n<h3>Two dimension Venn plot<\/h3>\n<pre class=\"r\"><code>ggVennDiagram(x[1:2], label_alpha = 0)<\/code><\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/dn-tutorials\/r-tutorial\/figures\/ggplot-venn-diagram-with-r-two-dimension-venn-plot-1.png\" width=\"384\" \/><\/p>\n<\/div>\n<\/div>\n<div id=\"create-venn-diagrams-using-the-ggven-r-package\" class=\"section level2\">\n<h2>Create Venn diagrams using the ggven R package<\/h2>\n<div id=\"install-and-load-the-ggvenn-package\" class=\"section level3\">\n<h3>Install and load the ggvenn package<\/h3>\n<p>Install the latest development version:<\/p>\n<pre class=\"r\"><code>if (!require(devtools)) install.packages(\"devtools\")\r\ndevtools::install_github(\"yanlinlin82\/ggvenn\")<\/code><\/pre>\n<p>Load:<\/p>\n<pre class=\"r\"><code>library(\"ggvenn\")<\/code><\/pre>\n<\/div>\n<div id=\"four-dimension-venn-plot-1\" class=\"section level3\">\n<h3>Four dimension Venn plot<\/h3>\n<div class=\"block\">\n<p>Note that, the <code>ggvenn()<\/code> function assigns a specific color to each set.<\/p>\n<\/div>\n<pre class=\"r\"><code>library(\"ggvenn\")\r\n# Default plot\r\nggvenn(x)<\/code><\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/dn-tutorials\/r-tutorial\/figures\/ggplot-venn-diagram-with-r-ggvenn-four-dimension-venn-plot-1.png\" width=\"576\" \/><\/p>\n<pre class=\"r\"><code># Change category names\r\n# Change the fill color\r\nnames(x) &lt;- c(\"Stage 1\",\"Stage 2\",\"Stage 3\", \"Stage4\")\r\nggvenn(\r\n  x, \r\n  fill_color = c(\"#0073C2FF\", \"#EFC000FF\", \"#868686FF\", \"#CD534CFF\"),\r\n  stroke_size = 0.5, set_name_size = 4\r\n  )<\/code><\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/dn-tutorials\/r-tutorial\/figures\/ggplot-venn-diagram-with-r-ggvenn-four-dimension-venn-plot-2.png\" width=\"576\" \/><\/p>\n<\/div>\n<div id=\"three-dimension-venn-plot-1\" class=\"section level3\">\n<h3>Three dimension Venn plot<\/h3>\n<pre class=\"r\"><code>ggvenn(\r\n  x, columns = c(\"Stage 1\", \"Stage 2\", \"Stage 3\"),\r\n  stroke_size = 0.5\r\n  )<\/code><\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/dn-tutorials\/r-tutorial\/figures\/ggplot-venn-diagram-with-r-ggvenn-three-dimension-venn-plot-1.png\" width=\"480\" \/><\/p>\n<\/div>\n<div id=\"two-dimension-venn-plot-1\" class=\"section level3\">\n<h3>Two dimension Venn plot<\/h3>\n<pre class=\"r\"><code>ggvenn(\r\n  x, columns = c(\"Stage 1\", \"Stage 2\"),\r\n  stroke_size = 0.5\r\n  )<\/code><\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/dn-tutorials\/r-tutorial\/figures\/ggplot-venn-diagram-with-r-ggvenn-two-dimension-venn-plot-1.png\" width=\"480\" \/><\/p>\n<\/div>\n<\/div>\n<div id=\"conclusion\" class=\"section level2\">\n<h2>Conclusion<\/h2>\n<p>This article describes how to create a ggplot Venn diagram using the <code>ggvern<\/code>and the <code>ggVennDiagram<\/code> R packages.<\/p>\n<\/div>\n<\/div>\n<p><!--end rdoc--><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction This article describes how to create a beautiful ggplot Venn diagram. There are multiple extensions of the ggplot2 R package for creating Venn diagram in R, including the ggvenn [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":18110,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rating_form_position":"","rating_results_position":"","mr_structured_data_type":"","footnotes":""},"categories":[134],"tags":[137,372],"class_list":["post-18109","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-data-visualization","tag-ggplot2-extensions","tag-venn-diagram"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Create Beautiful GGPlot Venn Diagram with R - Datanovia<\/title>\n<meta name=\"description\" content=\"Describes how to create a beautiful ggplot Venn diagram in R. You will learn how to generate publication quality Venn graphique using ggplot2\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.datanovia.com\/en\/blog\/beautiful-ggplot-venn-diagram-with-r\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Create Beautiful GGPlot Venn Diagram with R - Datanovia\" \/>\n<meta property=\"og:description\" content=\"Describes how to create a beautiful ggplot Venn diagram in R. You will learn how to generate publication quality Venn graphique using ggplot2\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.datanovia.com\/en\/blog\/beautiful-ggplot-venn-diagram-with-r\/\" \/>\n<meta property=\"og:site_name\" content=\"Datanovia\" \/>\n<meta property=\"article:published_time\" content=\"2020-11-21T14:00:26+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/2020\/11\/ggplot-venn-diagram-with-r-four-dimension-venn-plot-1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1152\" \/>\n\t<meta property=\"og:image:height\" content=\"960\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Alboukadel\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Alboukadel\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.datanovia.com\/en\/blog\/beautiful-ggplot-venn-diagram-with-r\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.datanovia.com\/en\/blog\/beautiful-ggplot-venn-diagram-with-r\/\"},\"author\":{\"name\":\"Alboukadel\",\"@id\":\"https:\/\/www.datanovia.com\/en\/#\/schema\/person\/7767cf2bd5c91a1610c6eb53a0ff069e\"},\"headline\":\"Beautiful GGPlot Venn Diagram with R\",\"datePublished\":\"2020-11-21T14:00:26+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.datanovia.com\/en\/blog\/beautiful-ggplot-venn-diagram-with-r\/\"},\"wordCount\":258,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\/\/www.datanovia.com\/en\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.datanovia.com\/en\/blog\/beautiful-ggplot-venn-diagram-with-r\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/2020\/11\/ggplot-venn-diagram-with-r-four-dimension-venn-plot-1.png\",\"keywords\":[\"ggplot2 extensions\",\"Venn diagram\"],\"articleSection\":[\"Data Visualization\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.datanovia.com\/en\/blog\/beautiful-ggplot-venn-diagram-with-r\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.datanovia.com\/en\/blog\/beautiful-ggplot-venn-diagram-with-r\/\",\"url\":\"https:\/\/www.datanovia.com\/en\/blog\/beautiful-ggplot-venn-diagram-with-r\/\",\"name\":\"How to Create Beautiful GGPlot Venn Diagram with R - Datanovia\",\"isPartOf\":{\"@id\":\"https:\/\/www.datanovia.com\/en\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.datanovia.com\/en\/blog\/beautiful-ggplot-venn-diagram-with-r\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.datanovia.com\/en\/blog\/beautiful-ggplot-venn-diagram-with-r\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/2020\/11\/ggplot-venn-diagram-with-r-four-dimension-venn-plot-1.png\",\"datePublished\":\"2020-11-21T14:00:26+00:00\",\"description\":\"Describes how to create a beautiful ggplot Venn diagram in R. You will learn how to generate publication quality Venn graphique using ggplot2\",\"breadcrumb\":{\"@id\":\"https:\/\/www.datanovia.com\/en\/blog\/beautiful-ggplot-venn-diagram-with-r\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.datanovia.com\/en\/blog\/beautiful-ggplot-venn-diagram-with-r\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.datanovia.com\/en\/blog\/beautiful-ggplot-venn-diagram-with-r\/#primaryimage\",\"url\":\"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/2020\/11\/ggplot-venn-diagram-with-r-four-dimension-venn-plot-1.png\",\"contentUrl\":\"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/2020\/11\/ggplot-venn-diagram-with-r-four-dimension-venn-plot-1.png\",\"width\":1152,\"height\":960,\"caption\":\"ggplot-venn-diagram-with-r-four-dimension-venn-plot-1.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.datanovia.com\/en\/blog\/beautiful-ggplot-venn-diagram-with-r\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.datanovia.com\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Beautiful GGPlot Venn Diagram with R\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.datanovia.com\/en\/#website\",\"url\":\"https:\/\/www.datanovia.com\/en\/\",\"name\":\"Datanovia\",\"description\":\"Data Mining and Statistics for Decision Support\",\"publisher\":{\"@id\":\"https:\/\/www.datanovia.com\/en\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.datanovia.com\/en\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.datanovia.com\/en\/#organization\",\"name\":\"Datanovia\",\"url\":\"https:\/\/www.datanovia.com\/en\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.datanovia.com\/en\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/2018\/09\/datanovia-logo.png\",\"contentUrl\":\"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/2018\/09\/datanovia-logo.png\",\"width\":98,\"height\":99,\"caption\":\"Datanovia\"},\"image\":{\"@id\":\"https:\/\/www.datanovia.com\/en\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.datanovia.com\/en\/#\/schema\/person\/7767cf2bd5c91a1610c6eb53a0ff069e\",\"name\":\"Alboukadel\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.datanovia.com\/en\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ed3108646c5c7c3d188324ab972f96ad7d9975b41b94014d7f68257791be395a?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ed3108646c5c7c3d188324ab972f96ad7d9975b41b94014d7f68257791be395a?s=96&d=mm&r=g\",\"caption\":\"Alboukadel\"},\"url\":\"https:\/\/www.datanovia.com\/en\/blog\/author\/kassambara\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Create Beautiful GGPlot Venn Diagram with R - Datanovia","description":"Describes how to create a beautiful ggplot Venn diagram in R. You will learn how to generate publication quality Venn graphique using ggplot2","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.datanovia.com\/en\/blog\/beautiful-ggplot-venn-diagram-with-r\/","og_locale":"en_US","og_type":"article","og_title":"How to Create Beautiful GGPlot Venn Diagram with R - Datanovia","og_description":"Describes how to create a beautiful ggplot Venn diagram in R. You will learn how to generate publication quality Venn graphique using ggplot2","og_url":"https:\/\/www.datanovia.com\/en\/blog\/beautiful-ggplot-venn-diagram-with-r\/","og_site_name":"Datanovia","article_published_time":"2020-11-21T14:00:26+00:00","og_image":[{"width":1152,"height":960,"url":"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/2020\/11\/ggplot-venn-diagram-with-r-four-dimension-venn-plot-1.png","type":"image\/png"}],"author":"Alboukadel","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Alboukadel","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.datanovia.com\/en\/blog\/beautiful-ggplot-venn-diagram-with-r\/#article","isPartOf":{"@id":"https:\/\/www.datanovia.com\/en\/blog\/beautiful-ggplot-venn-diagram-with-r\/"},"author":{"name":"Alboukadel","@id":"https:\/\/www.datanovia.com\/en\/#\/schema\/person\/7767cf2bd5c91a1610c6eb53a0ff069e"},"headline":"Beautiful GGPlot Venn Diagram with R","datePublished":"2020-11-21T14:00:26+00:00","mainEntityOfPage":{"@id":"https:\/\/www.datanovia.com\/en\/blog\/beautiful-ggplot-venn-diagram-with-r\/"},"wordCount":258,"commentCount":1,"publisher":{"@id":"https:\/\/www.datanovia.com\/en\/#organization"},"image":{"@id":"https:\/\/www.datanovia.com\/en\/blog\/beautiful-ggplot-venn-diagram-with-r\/#primaryimage"},"thumbnailUrl":"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/2020\/11\/ggplot-venn-diagram-with-r-four-dimension-venn-plot-1.png","keywords":["ggplot2 extensions","Venn diagram"],"articleSection":["Data Visualization"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.datanovia.com\/en\/blog\/beautiful-ggplot-venn-diagram-with-r\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.datanovia.com\/en\/blog\/beautiful-ggplot-venn-diagram-with-r\/","url":"https:\/\/www.datanovia.com\/en\/blog\/beautiful-ggplot-venn-diagram-with-r\/","name":"How to Create Beautiful GGPlot Venn Diagram with R - Datanovia","isPartOf":{"@id":"https:\/\/www.datanovia.com\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.datanovia.com\/en\/blog\/beautiful-ggplot-venn-diagram-with-r\/#primaryimage"},"image":{"@id":"https:\/\/www.datanovia.com\/en\/blog\/beautiful-ggplot-venn-diagram-with-r\/#primaryimage"},"thumbnailUrl":"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/2020\/11\/ggplot-venn-diagram-with-r-four-dimension-venn-plot-1.png","datePublished":"2020-11-21T14:00:26+00:00","description":"Describes how to create a beautiful ggplot Venn diagram in R. You will learn how to generate publication quality Venn graphique using ggplot2","breadcrumb":{"@id":"https:\/\/www.datanovia.com\/en\/blog\/beautiful-ggplot-venn-diagram-with-r\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.datanovia.com\/en\/blog\/beautiful-ggplot-venn-diagram-with-r\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.datanovia.com\/en\/blog\/beautiful-ggplot-venn-diagram-with-r\/#primaryimage","url":"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/2020\/11\/ggplot-venn-diagram-with-r-four-dimension-venn-plot-1.png","contentUrl":"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/2020\/11\/ggplot-venn-diagram-with-r-four-dimension-venn-plot-1.png","width":1152,"height":960,"caption":"ggplot-venn-diagram-with-r-four-dimension-venn-plot-1.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.datanovia.com\/en\/blog\/beautiful-ggplot-venn-diagram-with-r\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.datanovia.com\/en\/"},{"@type":"ListItem","position":2,"name":"Beautiful GGPlot Venn Diagram with R"}]},{"@type":"WebSite","@id":"https:\/\/www.datanovia.com\/en\/#website","url":"https:\/\/www.datanovia.com\/en\/","name":"Datanovia","description":"Data Mining and Statistics for Decision Support","publisher":{"@id":"https:\/\/www.datanovia.com\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.datanovia.com\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.datanovia.com\/en\/#organization","name":"Datanovia","url":"https:\/\/www.datanovia.com\/en\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.datanovia.com\/en\/#\/schema\/logo\/image\/","url":"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/2018\/09\/datanovia-logo.png","contentUrl":"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/2018\/09\/datanovia-logo.png","width":98,"height":99,"caption":"Datanovia"},"image":{"@id":"https:\/\/www.datanovia.com\/en\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.datanovia.com\/en\/#\/schema\/person\/7767cf2bd5c91a1610c6eb53a0ff069e","name":"Alboukadel","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.datanovia.com\/en\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/ed3108646c5c7c3d188324ab972f96ad7d9975b41b94014d7f68257791be395a?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ed3108646c5c7c3d188324ab972f96ad7d9975b41b94014d7f68257791be395a?s=96&d=mm&r=g","caption":"Alboukadel"},"url":"https:\/\/www.datanovia.com\/en\/blog\/author\/kassambara\/"}]}},"multi-rating":{"mr_rating_results":[]},"_links":{"self":[{"href":"https:\/\/www.datanovia.com\/en\/wp-json\/wp\/v2\/posts\/18109","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.datanovia.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.datanovia.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.datanovia.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.datanovia.com\/en\/wp-json\/wp\/v2\/comments?post=18109"}],"version-history":[{"count":1,"href":"https:\/\/www.datanovia.com\/en\/wp-json\/wp\/v2\/posts\/18109\/revisions"}],"predecessor-version":[{"id":18112,"href":"https:\/\/www.datanovia.com\/en\/wp-json\/wp\/v2\/posts\/18109\/revisions\/18112"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.datanovia.com\/en\/wp-json\/wp\/v2\/media\/18110"}],"wp:attachment":[{"href":"https:\/\/www.datanovia.com\/en\/wp-json\/wp\/v2\/media?parent=18109"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.datanovia.com\/en\/wp-json\/wp\/v2\/categories?post=18109"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.datanovia.com\/en\/wp-json\/wp\/v2\/tags?post=18109"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}