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

number of sets #248

Open
antoine4ucsd opened this issue Jul 15, 2023 · 0 comments
Open

number of sets #248

antoine4ucsd opened this issue Jul 15, 2023 · 0 comments

Comments

@antoine4ucsd
Copy link

Hello
I found this package very interesting to plot my data of reported symptoms.
my data include daily report of ~30 symptoms across 5 participants.
image

I ran this code with all the symptoms but get this error

mydata %>% 
        UpSetR::upset(
                sets = c("Malaise", "Back Pain", "Joint Pain", "Muscle Pain", "Fever", 
                         "Anorexia", "Nausia", "Bloating", "Epigastric Pain", "Trouble Swallowing", 
                         "Skin Rash", "Weakness", "Confusion", "Delirium", "Agitation", 
                         "Headache", "Abdominal Pain", "Gingival Bleeding", "Nasal Bleeding", 
                         "Asthenia", "Cough", "Nasal Congestion", "Constipation", "Arthralgia", 
                         "Lips Swelling", "Sore Throat", "Hypoglycemia", "Altered Consciousness", 
                         "Convulsions", "Gastric Bleeding", "Oral Bleeding", "Haemorragic Conjunctivitis"
                ),
                order.by = "freq",
                sets.bar.color = c("#aab6b9", "#7cbecc", "#7cbecc", "#7cbecc", "#aab6b9", "#2b9f84", 
                                            "#2b9f84", "#2b9f84", "#2b9f84", "#2b9f84", "#aab6b9", "#7cbecc", 
                                            "#ffdd73", "#ffdd73", "#ffdd73", "#aab6b9", "#2b9f84", "#d4595d", 
                                            "#d4595d", "#aab6b9", "#aab6b9", "#aab6b9", "#2b9f84", "#7cbecc", 
                                            "#aab6b9", "#aab6b9", "#aab6b9", "#ffdd73", "#ffdd73", "#d4595d", 
                                            "#d4595d", "#d4595d"), # optional colors
                                            empty.intersections = "on",
                #nintersects = 5,
                #nsets = 5, 
                number.angles = 0,
                point.size = 3.5,
                line.size = 2, 
                mainbar.y.label = "Symptoms Combinations",
                sets.x.label = "Patients with Symptom")
Error: vector memory exhausted (limit reached?)

my dataframe is 57x37 size

I also tried with nintersets=5 but still same error. is there a way to include all symptoms in the analyses even when only plotting the top N combinations?

thank you!

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

1 participant