Closed ChristinaSchmidt1 closed 1 year ago
leg <- ggpubr::get_legend(Plot)
# Convert to a ggplot and print
ggpubr::as_ggplot(leg)
With this we could try to baiscally add both the legend from the plot and the pie chart
For now I removed this feature to be plotted in the Volcano. Once I have updated all the saving functionalities I will work on implementing this properly.
Moved to Viz package
If PieChartLegend is used together with shapes, the legend have not enough space. We can try and fix this by removing the legends from enhancedVolcano (legend=NULL), and adding them separately as done with the PieChart.
Moreover, the size of the PieChart changes dependent on the Volcano axis and data points. We should fix this, so the final graph is easily readable.