daattali / ggExtra

📊 Add marginal histograms to ggplot2, and more ggplot2 enhancements
http://daattali.com/shiny/ggExtra-ggMarginal-demo/
Other
383 stars 45 forks source link

ggMarginal(p) invalidates the boldness of the main plot title #30

Closed pinetree1 closed 8 years ago

pinetree1 commented 8 years ago

ggMargin is great. But it changes bold main title to plain text, which is not desired.

p <- ggplot(mtcars, aes(x=wt, y=mpg)) + geom_point() + theme_bw() + labs(title="Main Title", y="MPG") + theme(plot.title=element_text(face="bold", size=14), axis.title.y=element_text(face="bold", size=14))

p's main title and y are bold.

ggMarginal(p, margins="y", size=4)

Now main title is changed to plain text. The y title font face is not affected. Can you maintain the font face of main title?

daattali commented 8 years ago

fixed just now, thanks