Comments (8)
I got this UpSet plot when using your data. I just made sure that the type of each binary column was an integer.
from upsetr.
could you send me a small snippet of the data frame so I could test it? It may have something to do with the types of your columns.
from upsetr.
Here's a quick csv output from the table I'm using:
final_MADS_upsetr.txt
from upsetr.
looks good! any tips on how to do that?
from upsetr.
for(i in 2:ncol(data)){ data[ , i] <- as.integer(data[ , i]) }
from upsetr.
With this I get a binary data frame of 1s and 2s and then
upset(data)
Error in start_col:end_col : argument of length 0
from upsetr.
for(i in 2:ncol(data)){ data[ , i] <- as.integer(data[ , i]) for(j in 1:nrow(data)){ data[ j, i] <- data[j, i]-1 } }
You're most likely getting 1's and 2's because the 0's and 1's from your data frame are factors.
from upsetr.
Thanks, I now see the graph but it only shows data from five columns (same as yours, but not showing Tuff, for example). How can I fix this up?
Solved - adding the following did it!
sets=c("Amphibolite", "Basalt", "Coal",
+ "Coal-Upper", "Dolomite", "Hematite_Granite",
+ "High-calcite_clay", "mica_schist",
+ "pegmatitic_granite", "Sandstone", "Shale",
+ "Sub_bituminous_coal", "Tuff", "Volatile_bituminous_coal"))
from upsetr.
Related Issues (20)
- Error in `check_breaks_labels()`: `upset()` now fails basic ggplot2 checks
- y ticks labels (intersections) at decimal values
- Is there a possibility of excluding self comparisons from upset plot? HOT 1
- Error in Input file
- Angled Text not aligned with Vertical Bars
- Missing intersections when filtering 0 count groups HOT 1
- Incorrect value of set size HOT 1
- How to get the genes that are part of each intersection?
- reopen: mb.ratio throws off set size bar vertical alignment
- MultiNet Displays Incorrect Results HOT 1
- How do I make the bar graph show the up and down relationship
- How to input margin
- number of sets
- Text scale for metadata plots HOT 1
- How do I set complement size using fromExpression?
- error with UpSetR plot HOT 1
- possible bug? HOT 1
- Option to change the y-axis limit HOT 1
- Adjust legend
- Result conflictions for the same data
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from upsetr.