使用as.data.frame绘制splom()图形

时间:2017-10-28 23:01:47

标签: r graphics lattice

我需要使用带有splom()函数的lattice包构建as.data.frame图形,但它不起作用。

library(lattice)
data(Investment, package = "sandwich")
Investment <- as.data.frame(Investment, GNP)
splom(Investment|"Graphic", xlab = "Investment", ylab = "GNP")

1 个答案:

答案 0 :(得分:2)

你可以试试这个:

_drawRect = new Rectangle((int)_location.X - _halfDrawRectangleWidth, 
      (int)_location.Y - _halfDrawRectangleHeight, _spriteBall.Width, _spriteBall.Height);