我是函数级别图的新手。我有 x,y,z 我想通过以下方式可视化水平图:
> require(lattice)
> head(z)
[,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9]
[1,] 4.5 4.7 4.6 4.6 4.6 4.6 4.6 4.6 4.7
[2,] 4.5 4.6 4.6 4.6 4.6 4.6 4.6 4.6 4.7
[3,] 4.5 4.7 4.6 4.6 4.6 4.6 4.7 4.6 4.7
[4,] 4.5 4.6 4.6 4.6 4.6 4.6 4.6 4.6 4.7
[5,] 4.6 4.6 4.6 4.6 4.6 4.6 4.6 4.6 4.7
[6,] 4.5 4.7 4.6 4.6 4.6 4.6 4.6 4.6 4.7
> head(y)
[,1]
[1,] 1
[2,] 2
[3,] 3
[4,] 5
[5,] 7
[6,] 10
> head(x)
[1] "2013-01-03 04:30:00 GMT" "2013-01-03 04:45:00 GMT" "2013-01-03 05:00:00 GMT"
[4] "2013-01-03 05:15:00 GMT" "2013-01-03 05:30:00 GMT" "2013-01-03 05:45:00 GMT"
z 代表水温和 y 水深
我想通过以下方式绘制数据:
> levelplot(z~x*y)
轴和图例被正确绘制,但根本没有绘制内容。谁能帮我??
最好的问候,菲利普