I am trying to create a 3dscatter with colours for the combination of two variables. aka Not just for 'age' or 'diet' but separate colours for 'PROTEINOLD' and "PROTEINYOUNG"
They should be 6 overall..
cols <- c("pink", "green", "blue", "red", "yellow", "black")
with(INTERACTION, scatterplot3d(eggs, eggs_mg, weight,main="Body measurements",
xlab = "",
ylab = "",
zlab = ")",
pch = 16, colour= colours(AgeDiet)))
I have had a multitude of errors..why?