You can write "fill = NA" in the argument of element_rect(), that should solve your problem.
On Tue, Mar 1, 2016 at 3:46 PM, Hoji, Akihiko <ak...@pitt.edu> wrote: > A quick question. How come data points disappear when > “theme(panel.border=element_rect()) is used and how could I get those > points back on the plot ? > > Thanks in advance. > > AH > ______________________________________________ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > 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. [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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.