Comments (2)
Hi @cristobalcar, thanks for opening this issue. It works as any other ggplot graphic and does work in R markdown well. I am happy to help you with your problem, but please let me help you by expanding your example (what is x
?). Ideally, please try to use the example code:
library(ggplot2)
library(ComplexUpset)
if(!require(ggplot2movies)) install.packages('ggplot2movies')
movies = ggplot2movies::movies
genres = c('Action', 'Animation', 'Comedy', 'Drama', 'Documentary', 'Romance')
upset(
movies,
genres,
annotations = list(
'Length'=list(
aes=aes(x=intersection, y=length),
geom=geom_boxplot()
),
'Rating'=list(
aes=aes(x=intersection, y=rating),
geom=list(
# if you do not want to install ggbeeswarm, you can use geom_jitter
ggbeeswarm::geom_quasirandom(aes(color=log10(votes))),
geom_violin(width=1.1, alpha=0.5)
)
)
),
queries=list(
upset_query(
intersect=c('Drama', 'Comedy'),
color='red',
fill='red',
only_components=c('intersections_matrix', 'Intersection size')
),
upset_query(
set='Drama',
fill='blue'
),
upset_query(
intersect=c('Romance', 'Drama'),
fill='yellow',
only_components=c('Length')
)
),
min_size=10,
width_ratio=0.1
)
and let me know if it works for you. Also, if there are any errors please provide the full error messages.
from complex-upset.
Thank you for your answer!
Sorry about this but I had an error in the code.
Solved! And working perfectly!!
from complex-upset.
Related Issues (20)
- complex-upset for multiple lists HOT 2
- How can I change the labels in the UpSet plot? HOT 10
- Is there a way to speed up ComplexUpset for large data sets?
- Removed rows due to "missing values" when there are non HOT 2
- How to display intersection size as percentage of total rows?
- What determines the size of the bars? HOT 3
- How can I reduce the file size of the .eps UpSet figure?
- upset error: `strip.clip` not defined HOT 2
- Reduce the size of circles when the size of the global figure is diminished. HOT 2
- ! `data` must be uniquely named but has duplicate columns HOT 1
- How to use fromexpression() of upsetR in complex upset? HOT 1
- sort_sets user order HOT 1
- Change axis text size and bar text size HOT 1
- Incorrect intersection size HOT 8
- Memory issue when passing "intersection=" parameter to large matrix HOT 1
- Add more examples
- add intersection of the union of certain sets within the same intersection upset plot. HOT 2
- Set default color of dots in the matrix plot HOT 1
- Ordering by intersection sizes and degree
- y axis units for the intersection size and stacking plots HOT 7
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 complex-upset.