Graph does not show after type lattice command

前端 未结 1 2000
一生所求
一生所求 2021-01-23 00:26

I installed the package lattice, and typed xyplot(). There is no error message but neither does a graph show up. I tried to switch to plot()

相关标签:
1条回答
  • 2021-01-23 00:52

    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 讨论(0)
提交回复
热议问题