natverse / coconatfly

Comparative Connectomics of Public and In Progress Drosophila Datasets
https://natverse.org/coconatfly/
3 stars 1 forks source link

Interactive vs. exported plots differ #9

Open markuspleijzier opened 9 months ago

markuspleijzier commented 9 months ago

Different clusters are returned when comparing interactive plots vs. exported plots

Code:

library(coconatfly)
library(dplyr)

mbon_ids <- cf_ids('/type:MBON.+', datasets = c('hemibrain', 'flywire'))

## for interactive version
cf_cosine_plot(mbon_ids, interactive = T, threshold = 5, group = T)

## for plotting
pdf("~/all_mbon_clust_grouped_T.pdf",
    width = 40, height = 45); par(mar = c(20, 20, 20, 20))
cf_cosine_plot(mbon_ids, interactive = F, threshold = 5, group = T)
dev.off()
markuspleijzier commented 9 months ago

(inspect bottom right corner of plots)

jefferis commented 9 months ago

Unfortunately a differerent heatmap function is required for the interactive mode and it's not trivial to align the output with the base R heatmap which remains the default.