Try this, print(p+ opts(plot.background= theme_rect(fill=NA)))
HTH, baptiste 2009/8/19 rajesh j <akshay.raj...@gmail.com>: > Hi, > I plotted a histogram using ggplot2 and saved it as a pdf.However, the > portions outside the histogram dont appear transparent when I use a > non-white bg colour in my latex document.What can I do to make them > transparent? > > -- > Rajesh.J > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- _____________________________ Baptiste Auguié School of Physics University of Exeter Stocker Road, Exeter, Devon, EX4 4QL, UK http://newton.ex.ac.uk/research/emag ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.