I installed the package lattice
, and typed xyplot()
. There is no error message but neither does a graph show u开发者_JS百科p. I tried to switch to plot()
and it works well. Any idea why it happened? Thank you!
Try this:
require(lattice)
require(stats)
Depth <- equal.count(quakes$depth, number=8, overlap=.1)
my_plot <- xyplot(lat ~ long | Depth, data = quakes)
print(my_plot)
Thanks to richiemorrisroe and Gavin Simpson.
精彩评论