Venn Diagram i R Studio
How do I make a Venn diagram that looks like this:
rstudio venn-diagram
add a comment |
How do I make a Venn diagram that looks like this:
rstudio venn-diagram
add a comment |
How do I make a Venn diagram that looks like this:
rstudio venn-diagram
How do I make a Venn diagram that looks like this:
rstudio venn-diagram
rstudio venn-diagram
asked Nov 14 '18 at 13:33
newbie1239newbie1239
205
205
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
There are several options. For instance, I created a library called nVennR which you can install from CRAN. For your example,
library(nVennR)
myV <- createVennObj(nSets = 5, sNames = c('A', 'B', 'C', 'D', 'E'))
myV <- setVennRegion(myV, c('E'), 2)
myV <- setVennRegion(myV, c('E', 'A'), 4)
myV <- setVennRegion(myV, c('B'), 8)
myV <- setVennRegion(myV, c('A', 'B'), 10)
myV <- setVennRegion(myV, c('A'), 9)
myV <- setVennRegion(myV, c('D', 'A'), 4)
myV <- setVennRegion(myV, c('D'), 8)
myV <- setVennRegion(myV, c('A', 'C'), 3)
myV <- setVennRegion(myV, c('C'), 5)
pV <- plotVenn(nVennObj = myV)
And the result is:
The result is a vectorial image that can be saved and edited. For more details, you can read the vignette
Thanks for the answer.
– newbie1239
Nov 18 '18 at 13:50
When running your code we get the error message " Warning message: In showSVG(myVenn, ...) : The figure cannot be rendered in the plot window. Please, use the arguments outFile and/or systemShow." We have tried to set systemShow=T, but we don't know where to go from here.
– newbie1239
Nov 18 '18 at 13:51
This depends on which system you are using. I take it you do not have a graphical output. The safest option is to include 'outFile=path_to_svg_file', like pV <- plotVenn(nVennObj = myV, outFile='~/tmp.svg'), and then you get an svg file. You can open and edit that file with programs like Inkscape.
– vqf
Nov 18 '18 at 15:07
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53301456%2fvenn-diagram-i-r-studio%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
There are several options. For instance, I created a library called nVennR which you can install from CRAN. For your example,
library(nVennR)
myV <- createVennObj(nSets = 5, sNames = c('A', 'B', 'C', 'D', 'E'))
myV <- setVennRegion(myV, c('E'), 2)
myV <- setVennRegion(myV, c('E', 'A'), 4)
myV <- setVennRegion(myV, c('B'), 8)
myV <- setVennRegion(myV, c('A', 'B'), 10)
myV <- setVennRegion(myV, c('A'), 9)
myV <- setVennRegion(myV, c('D', 'A'), 4)
myV <- setVennRegion(myV, c('D'), 8)
myV <- setVennRegion(myV, c('A', 'C'), 3)
myV <- setVennRegion(myV, c('C'), 5)
pV <- plotVenn(nVennObj = myV)
And the result is:
The result is a vectorial image that can be saved and edited. For more details, you can read the vignette
Thanks for the answer.
– newbie1239
Nov 18 '18 at 13:50
When running your code we get the error message " Warning message: In showSVG(myVenn, ...) : The figure cannot be rendered in the plot window. Please, use the arguments outFile and/or systemShow." We have tried to set systemShow=T, but we don't know where to go from here.
– newbie1239
Nov 18 '18 at 13:51
This depends on which system you are using. I take it you do not have a graphical output. The safest option is to include 'outFile=path_to_svg_file', like pV <- plotVenn(nVennObj = myV, outFile='~/tmp.svg'), and then you get an svg file. You can open and edit that file with programs like Inkscape.
– vqf
Nov 18 '18 at 15:07
add a comment |
There are several options. For instance, I created a library called nVennR which you can install from CRAN. For your example,
library(nVennR)
myV <- createVennObj(nSets = 5, sNames = c('A', 'B', 'C', 'D', 'E'))
myV <- setVennRegion(myV, c('E'), 2)
myV <- setVennRegion(myV, c('E', 'A'), 4)
myV <- setVennRegion(myV, c('B'), 8)
myV <- setVennRegion(myV, c('A', 'B'), 10)
myV <- setVennRegion(myV, c('A'), 9)
myV <- setVennRegion(myV, c('D', 'A'), 4)
myV <- setVennRegion(myV, c('D'), 8)
myV <- setVennRegion(myV, c('A', 'C'), 3)
myV <- setVennRegion(myV, c('C'), 5)
pV <- plotVenn(nVennObj = myV)
And the result is:
The result is a vectorial image that can be saved and edited. For more details, you can read the vignette
Thanks for the answer.
– newbie1239
Nov 18 '18 at 13:50
When running your code we get the error message " Warning message: In showSVG(myVenn, ...) : The figure cannot be rendered in the plot window. Please, use the arguments outFile and/or systemShow." We have tried to set systemShow=T, but we don't know where to go from here.
– newbie1239
Nov 18 '18 at 13:51
This depends on which system you are using. I take it you do not have a graphical output. The safest option is to include 'outFile=path_to_svg_file', like pV <- plotVenn(nVennObj = myV, outFile='~/tmp.svg'), and then you get an svg file. You can open and edit that file with programs like Inkscape.
– vqf
Nov 18 '18 at 15:07
add a comment |
There are several options. For instance, I created a library called nVennR which you can install from CRAN. For your example,
library(nVennR)
myV <- createVennObj(nSets = 5, sNames = c('A', 'B', 'C', 'D', 'E'))
myV <- setVennRegion(myV, c('E'), 2)
myV <- setVennRegion(myV, c('E', 'A'), 4)
myV <- setVennRegion(myV, c('B'), 8)
myV <- setVennRegion(myV, c('A', 'B'), 10)
myV <- setVennRegion(myV, c('A'), 9)
myV <- setVennRegion(myV, c('D', 'A'), 4)
myV <- setVennRegion(myV, c('D'), 8)
myV <- setVennRegion(myV, c('A', 'C'), 3)
myV <- setVennRegion(myV, c('C'), 5)
pV <- plotVenn(nVennObj = myV)
And the result is:
The result is a vectorial image that can be saved and edited. For more details, you can read the vignette
There are several options. For instance, I created a library called nVennR which you can install from CRAN. For your example,
library(nVennR)
myV <- createVennObj(nSets = 5, sNames = c('A', 'B', 'C', 'D', 'E'))
myV <- setVennRegion(myV, c('E'), 2)
myV <- setVennRegion(myV, c('E', 'A'), 4)
myV <- setVennRegion(myV, c('B'), 8)
myV <- setVennRegion(myV, c('A', 'B'), 10)
myV <- setVennRegion(myV, c('A'), 9)
myV <- setVennRegion(myV, c('D', 'A'), 4)
myV <- setVennRegion(myV, c('D'), 8)
myV <- setVennRegion(myV, c('A', 'C'), 3)
myV <- setVennRegion(myV, c('C'), 5)
pV <- plotVenn(nVennObj = myV)
And the result is:
The result is a vectorial image that can be saved and edited. For more details, you can read the vignette
answered Nov 16 '18 at 15:41
vqfvqf
912
912
Thanks for the answer.
– newbie1239
Nov 18 '18 at 13:50
When running your code we get the error message " Warning message: In showSVG(myVenn, ...) : The figure cannot be rendered in the plot window. Please, use the arguments outFile and/or systemShow." We have tried to set systemShow=T, but we don't know where to go from here.
– newbie1239
Nov 18 '18 at 13:51
This depends on which system you are using. I take it you do not have a graphical output. The safest option is to include 'outFile=path_to_svg_file', like pV <- plotVenn(nVennObj = myV, outFile='~/tmp.svg'), and then you get an svg file. You can open and edit that file with programs like Inkscape.
– vqf
Nov 18 '18 at 15:07
add a comment |
Thanks for the answer.
– newbie1239
Nov 18 '18 at 13:50
When running your code we get the error message " Warning message: In showSVG(myVenn, ...) : The figure cannot be rendered in the plot window. Please, use the arguments outFile and/or systemShow." We have tried to set systemShow=T, but we don't know where to go from here.
– newbie1239
Nov 18 '18 at 13:51
This depends on which system you are using. I take it you do not have a graphical output. The safest option is to include 'outFile=path_to_svg_file', like pV <- plotVenn(nVennObj = myV, outFile='~/tmp.svg'), and then you get an svg file. You can open and edit that file with programs like Inkscape.
– vqf
Nov 18 '18 at 15:07
Thanks for the answer.
– newbie1239
Nov 18 '18 at 13:50
Thanks for the answer.
– newbie1239
Nov 18 '18 at 13:50
When running your code we get the error message " Warning message: In showSVG(myVenn, ...) : The figure cannot be rendered in the plot window. Please, use the arguments outFile and/or systemShow." We have tried to set systemShow=T, but we don't know where to go from here.
– newbie1239
Nov 18 '18 at 13:51
When running your code we get the error message " Warning message: In showSVG(myVenn, ...) : The figure cannot be rendered in the plot window. Please, use the arguments outFile and/or systemShow." We have tried to set systemShow=T, but we don't know where to go from here.
– newbie1239
Nov 18 '18 at 13:51
This depends on which system you are using. I take it you do not have a graphical output. The safest option is to include 'outFile=path_to_svg_file', like pV <- plotVenn(nVennObj = myV, outFile='~/tmp.svg'), and then you get an svg file. You can open and edit that file with programs like Inkscape.
– vqf
Nov 18 '18 at 15:07
This depends on which system you are using. I take it you do not have a graphical output. The safest option is to include 'outFile=path_to_svg_file', like pV <- plotVenn(nVennObj = myV, outFile='~/tmp.svg'), and then you get an svg file. You can open and edit that file with programs like Inkscape.
– vqf
Nov 18 '18 at 15:07
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53301456%2fvenn-diagram-i-r-studio%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown