UpSetR icon indicating copy to clipboard operation
UpSetR copied to clipboard

Change shape for custom query overlay when active = F

Open EandrewJones opened this issue 5 years ago • 0 comments

Hi, I'm working on a figure for publication and I'd like to customize the shapes for a set of custom queries when active = F.

The custom queries are simple functions that subset the data by a variable's value: sec_func <- function(row, value) { data <- (row['sec_ind'] > value) }

I wrote three identical functions for three different variables: queries = list( list( query = lib_func, params = list(mean(dv2$lib, na.rm = T)), active = F, query.name = 'Liberal Norms' ) , list( query = econ_func, params = list(mean(dv2$ifdi_avg, na.rm = T)), active = F, query.name = 'Economic Integration' ), list( query = sec_func, params = list(mean(dv2$sec_ind)), active = F, query.name = 'Security Hierarchy' )

All three queries are represented by color-differentiated triangles overlaid on the intersection counts. I need to distinguish the queries by shape rather than color to meet the journal's requirements. I'm happy to customize the source code myself, but I am having trouble finding which function & parameter combo determines the shape.

I also think this would be a nice functionality to incorporate in the future.

EandrewJones avatar May 23 '19 18:05 EandrewJones