Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ps_venn #5

Closed
Hesham999666 opened this issue Mar 16, 2021 · 6 comments
Closed

ps_venn #5

Hesham999666 opened this issue Mar 16, 2021 · 6 comments

Comments

@Hesham999666
Copy link

when I run my code for ps_venn

ps_venn (ps.nonc.nocyano, SampleType,
fraction = 0.1,
weight = FALSE,
type = "percent",
relative = TRUE,
plot = TRUE)

SampleType is my variable
here is when I run sampledata
Sample Data: [357 samples by 2 sample variables]:
SampleType Sample2
1001SH CFH 1001SH
1001WH CFH 1001WH
1001WS CS 1001WS

I got this error
Error in paste("value ~ Var1 +", group) : object 'SampleType' not found

it also with other function such as ps_euler, ps_pheatmap.

@Hesham999666
Copy link
Author

Hesham999666 commented Mar 17, 2021

I have found what was wrong

ps_venn (ps.nonc.nocyano, group = 'SampleType', type = 'percent')

working for me

Hesham

@Russel88
Copy link
Owner

Glad you found the solution.

Cheers,
Jakob

@marwa38
Copy link

marwa38 commented Apr 24, 2022

Hi Jacob
@Russel88
How can I change the font size of the percent?
ps_venn (ps.nonc.nocyano, group = 'SampleType', type = 'percent')
I can see that adding quantities = list(type=c("percent","counts"), font = 2) argument could change the font but I can't find a way to do the same when I am using only percent, so could you please advice?

*doing the following argument doesn't make any changes:
quantities = list(type = "counts", font = 5)

ps_venn(ps.chall.intesWtrFeed, 
        group = "sample.details",
        quantities = list(type = "counts", font = 5),
        labels = list(cex = 1.5))

I have seen this issue #9 but still, it didn't work for me.

Cheers
Marwa

@Russel88
Copy link
Owner

Hi Marwa

The following should work:

ps_venn(ps.chall.intesWtrFeed, 
        group = "sample.details",
        quantities = list(type = "percent", cex = 5),
        labels = list(cex = 1.5))

cex is controlling font size
font is controlling the font style

@marwa38
Copy link

marwa38 commented Jun 8, 2022

Hi @Russel88
Thanks very much, it worked fine for me.
In case of using percent and counts, any way to separate them on two different lines so I don't need to decrease the font size?
Here is my figure:
image

Thanks again
M

@Russel88
Copy link
Owner

Russel88 commented Jun 8, 2022

Hi Marwa

I don't know unfortunately. You could ask the authors of the eulerr package, which ps_venn is using internally

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants