[R] ggplot2 and add circle

From: Alaios <alaios_at_yahoo.com>
Date: Tue, 10 May 2011 09:54:14 -0700 (PDT)


Dear all,
today I have writted the following code, to plot the contents of some matrices I have

plot_shad_f
function(f){
  library(ggplot2)
  dev.new()
  plotdata<-melt(f)
  names(plotdata)<-c('x','y','z')
  v<-ggplot(plotdata, aes(x, y, z = z))
  print(v + geom_tile(aes(fill=z)))
}

I would like to ask your help add a small circle in this plotting. What would be the easiest way to do that in ggplot2?

Best Regards
Alex



R-help_at_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. Received on Tue 10 May 2011 - 16:56:16 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 10 May 2011 - 17:20:06 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive