File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 90
90
dplyr :: filter(significance < = cutoff ) %> %
91
91
ggplot(aes(x = signature , y = label , color = significance , size = size )) +
92
92
geom_point() +
93
- scale_color_continuous(low = " #114357" , high = " #E53935" , trans = .reverselog_trans(10 )) +
93
+ scale_color_continuous(low = " #114357" , high = " #E53935" , trans = log_trans(10 ),
94
+ guide = guide_colorbar(reverse = TRUE )) +
94
95
labs(title = title , color = color.label ) +
95
96
theme(
96
97
plot.title = element_text(hjust = 0.5 ),
105
106
p <- p + scale_size_continuous(trans = .reverselog_trans(10 )) + labs(size = " Significance" )
106
107
}
107
108
if (size_by == " genesets" ) {
108
- # p <- p + scale_size_continuous(trans = scales::log10_trans()) + labs(size = "Genesets\nSize")
109
- p <- p + scale_color_continuous(
110
- high = " #114357" , low = " #E53935" , trans = scales :: log10_trans(),
111
- guide = guide_colorbar(reverse = TRUE )
109
+ p <- p + scale_size_continuous(trans = scales :: log10_trans()) + labs(size = " Genesets\n Size" )
110
+ # p <- p + scale_color_continuous(
111
+ # high = "#114357", low = "#E53935", trans = scales::log10_trans(),
112
+ # guide = guide_colorbar(reverse = TRUE)
112
113
)
113
114
}
114
115
return (p )
You can’t perform that action at this time.
0 commit comments