开发者

Graph does not show after type lattice command

开发者 https://www.devze.com 2023-02-19 21:44 出处:网络
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? T

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消