teunbrand / ggnomics

A small project to add ggplot2 extensions
https://teunbrand.github.io/ggnomics/
Other
80 stars 4 forks source link

Hi-C triangles as position function #24

Open teunbrand opened 5 years ago

teunbrand commented 5 years ago

The 45 degree angle rotation could be a position function. Could add options such as clip = c("lower", "upper", "neither") or sawtooth = FALSE. Should convert raster-like data to polygon style parametrisation.

teunbrand commented 5 years ago

Come to think of it, should probably implement a default position function for Hi-C matrices to be symmetric.

teunbrand commented 5 years ago

Come to think of it, should probably implement a default position function for Hi-C matrices to be symmetric.

Would probably problematic in the following case. Say one would plot plot several chromosomes as facet and trans contacts. Facet assignment happens before position adjustments, so it would be too late to mirror the trans data. Might be best to stick to a geom or layer that preprocesses this.