How to add a title to a cnetplot?
1
0
Entering edit mode
22 months ago
appropiate ▴ 60

Perhaps this is a silly question, but i cannot find the way to add a title to cnetplot() (I do not mean adding caption to the corresponding chunk though), so any help appreciated. Thanks!

r cnetplot() • 1.0k views
2
Entering edit mode
22 months ago

Try p <- p + ggtitle("Title Here") where p is your cnet plot.

0
Entering edit mode

Thanks! For those interested in having the title centered, it would be:

p <- p + ggtitle("Title Here") +theme(plot.title = element_text(hjust= 0.5))