From the release news of ggplot 2.2.0: "The main plot title is now left-aligned to better work better with a subtitle". See also the plot.title argument in ?theme: "left-aligned by default". As pointed out by @J_F, you may add theme(plot.title = element_text(hjust = 0.5)) to...
Example, first with a short legend title: library(ggplot2) ggplot(iris, aes(x=Sepal.Length, y=Sepal.Width, color=Petal.Width)) + geom_point(size = 3) + scale_color_distiller(palette = "YlGn", type = "seq", direction = -1, name = "A") + theme(legend.title...
Certain non-limiting embodiments provide for a method for treating a subject having a cancer comprising administering, to the subject, an amount of a gap junction inhibitor that inhibits metastatic progression of the cancer in the brain. In particular non-limiting examples, the gap junction inhibitor...
3Center the title # Let's add a pretty decent title to the plot# However the title is justified to the left :/ggplot()+geom_point(data=iris,aes(x=Petal.Width,y=Petal.Length,color=Species))+ggtitle("My dope plot") # We can solve this by adjusting the title to be centered# The i...
\documentclass[12pt,english,nohyper]{tufte-handout} \usepackage{longtable} \usepackage{geometry} \begin{document} <<include=FALSE>>= library(ggplot2) library(xtable) @ \centerline{\Large\bf This is my Main Title} <<echo=FALSE,results='asis'>>= fname='plot1.pdf' pdf(fname,width=4,...
Here's a reproducible example: library('ggplot2')dat<-data.frame(variable=rep(c('Frogs','Kittens wearing tiny hats','Mars','Really long name that will wrap to three lines','Tacos','Your local public library'),each=2))dat$stratify<-rep(c('Yes','No'),6)dat...