How to add a title to a cnetplot?
1
0
Entering edit mode
2.2 years ago
appropiate ▴ 80

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.2k views
ADD COMMENT
2
Entering edit mode
2.2 years ago

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

ADD COMMENT
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))
ADD REPLY

Login before adding your answer.

Traffic: 1089 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6