我需要使用带有splom()
函数的lattice
包构建as.data.frame
图形,但它不起作用。
library(lattice)
data(Investment, package = "sandwich")
Investment <- as.data.frame(Investment, GNP)
splom(Investment|"Graphic", xlab = "Investment", ylab = "GNP")
答案 0 :(得分:2)
你可以试试这个:
_drawRect = new Rectangle((int)_location.X - _halfDrawRectangleWidth,
(int)_location.Y - _halfDrawRectangleHeight, _spriteBall.Width, _spriteBall.Height);