I am new to R. I have a dataframe qtr_1
I am trying to draw a 3D pie chart for the same using the code
qtr_1 <- sqldf::sqldf('Select Tier, Sales2016 from final_table where Quarter = 1')
qtr_1 <- qtr_1 %>% group_by(Tier) %>% summarise(sales_2016 = sum(Sales2016))
qtr_1 <- pie3D(qtr_1$sales_2016,labels = qtr_1$Tier, explode=0.1, col=rainbow(length(qtr_1$Tier)),
main="Qtr 1")
I get the error:
Error in if (by == 0 && del == 0) return(from) : missing value where TRUE/FALSE needed
is.na(qtr_1) gives false for all.
If some help me out with this please. Thanks in advance.