What is R’s crossproduct function?

I feel stupid asking, but what is the intent of R’s crossprod function with respect to vector inputs? I wanted to calculate the cross-product of two vectors in Euclidean space and mistakenly …

Tags

Hierarchical / Multilevel pie chart

Is there any way to create a chart like this in R?
Here is an extract of the data shown in the chart:

df <- structure(list(Animal = structure(c(2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 1L, ...