Два графика в одном окне (scatterplot3d)
L=c(1:19)
K=c(20:38)
library(scatterplot3d)
scatterplot3d(data$K, data$L, data$Q1, # data
main = "3D Scatter Plot with \nK[20:38] and L[1:19]", # title
xlab = "K", # x label
ylab = "L", # y label
zlab = "Q1=(K+L)", # z label
#pch = data$x4, # the "fourth" column for the marks
#color = data$x4, # the "fourth" column for the colours
angle = 35,) # angle of the camera
data = data.frame(L, K, Q11)
scatterplot3d(data$K, data$L, data$Q11, # data
main = "3D Scatter Plot with \nK[20:38] and L[1:19]", # title
xlab = "L", # x label
ylab = "K", # y label
zlab = "Q11=(2*K)+(2*L)", # z label
#pch = data$x4, # the "fourth" column for the marks
#color = data$x4, # the "fourth" column for the colours
angle = 45,) # angle of the camera
Я хотел бы построить эти две функции в одном окне. Есть ли способ добиться этого, похожий на "линии". Я попробовал "слой", но у меня ничего не вышло. Большое спасибо за любую помощь заранее.
PS: Я знаю, что эти функции довольно тривиальны, но я просто хочу проиллюстрировать простой момент, и было бы здорово собрать оба графика вместе, чтобы их можно было легко сравнить.