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
ADD COMMENT
2
Entering edit mode
22 months 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: 2451 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