Giter Club home page Giter Club logo

Comments (8)

JakeConway avatar JakeConway commented on May 20, 2024 1

rplot

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.

JakeConway avatar JakeConway commented on May 20, 2024

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.

GeoMicroSoares avatar GeoMicroSoares commented on May 20, 2024

Here's a quick csv output from the table I'm using:
final_MADS_upsetr.txt

from upsetr.

GeoMicroSoares avatar GeoMicroSoares commented on May 20, 2024

looks good! any tips on how to do that?

from upsetr.

JakeConway avatar JakeConway commented on May 20, 2024

for(i in 2:ncol(data)){ data[ , i] <- as.integer(data[ , i]) }

from upsetr.

GeoMicroSoares avatar GeoMicroSoares commented on May 20, 2024

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.

JakeConway avatar JakeConway commented on May 20, 2024

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.

GeoMicroSoares avatar GeoMicroSoares commented on May 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.