1
我需要使用lattice
包與as.data.frame
函數構建splom()
圖形,但它不起作用。使用as.data.frame繪製splom()圖形
library(lattice)
data(Investment, package = "sandwich")
Investment <- as.data.frame(Investment, GNP)
splom(Investment|"Graphic", xlab = "Investment", ylab = "GNP")