简体   繁体   中英

How to fix a 3D plot with missing values in plot3d

I'm trying to create a 3d graph with three quantitiave variables ( ama$p_022 , ama$p_023 , ama$p_024 ) and one categorical ( ama$p ). Quantitatives have NA 's and the categorical only two values, but when I use this command

plot3d(ama$p_022,ama$p_023,ama$p_024,col=as.integer(ama$p))

R gives me a warning message

In f(...) : NAs introduced by coercion

and it doesn't produce the graph. Can you help me?

我更改了数字字符串...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM