You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm creating a barplot visualization to show compare three methods of accessing scholarly articles. In this plot, there are three methods: oaDOI, Penn, and Sci-Hub. The plot shows the coverage of the methods independently as well as possible combinations:
I want to use UpSetR's matrix view for the axis labels. Is there anyway to apply the matrix view to an existing ggplot2 plot axis? I'm interested in the following three things:
Using ggplot2's syntax to define the plot as much as possible (i.e. not having to reimplement themes, ggplot2::geom_col, ggplot2::geom_text, etcetera).
Changing the axis to use a matrix view
Applying this to faceted plots (i.e. with ggplot2::facet_grid, 1 & 2 are bigger priorities).
Thanks @dhimmel! Could you maybe post a rough sketch of what you are trying to do? I am not sure if I am 100% sure that I understand what you are trying to achieve.
Hey @ngehlenborg, thanks for the help! The following modification of the above figure should demonstrate what I'm envisioning:
I want to replace the axis tick labels with an UpSetR matrix/dot view. Each bar in the plot represents the coverage of a certain access method or combination thereof.
Currently, I'm using a Venn-like diagram to show this (notebook):
However, these plots confuse people because they're not visualizing set overlap between the three access methods. Instead they show the coverage achieved by combining methods.
Essentially we want to use UpSetR to represent combinations of categories on a plot axis. Ideally, we'd continue using ggplot2 for the rest of the plot specification.
I'm creating a barplot visualization to show compare three methods of accessing scholarly articles. In this plot, there are three methods: oaDOI, Penn, and Sci-Hub. The plot shows the coverage of the methods independently as well as possible combinations:
I want to use UpSetR's matrix view for the axis labels. Is there anyway to apply the matrix view to an existing ggplot2 plot axis? I'm interested in the following three things:
ggplot2::geom_col
,ggplot2::geom_text
, etcetera).ggplot2::facet_grid
, 1 & 2 are bigger priorities).Is this possible?
Expand to see code and data for example
Here's the R code to create the plot above:
Here is the contents of
plot_df
:The text was updated successfully, but these errors were encountered: