类型格命令后不显示图形 [英] Graph does not show after type lattice command

查看:113
本文介绍了类型格命令后不显示图形的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了软件包 lattice ,并键入 xyplot()。没有错误信息,但图表也没有显示出来。我试图切换到 plot(),它运行良好。任何想法为什么发生?谢谢!

解决方案

试试这个:

  require(lattice)
require(stats)

Depth< - equal.count(quakes $ depth,number = 8,overlap = .1)
my_plot < - xyplot(lat〜long | Depth,data = quakes)
print(my_plot)

感谢richiemorrisroe和Gavin Simpson。

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() 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.

这篇关于类型格命令后不显示图形的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆