R pie chart with percentages

I have this df species<-c(“Platanus acerifolia Willd.”,”Platanus acerifolia Willd.”,”Platanus occidentalis L.”, “Morus alba L.”,”Platanus occidentalis L.”,”Celtis australis L.”) kategorija<-c(3,2,1,2,3,3) df<-data.frame(species,kategorija) and I need to make a pie chart from the frequencies of the categories labelled with their percentages.

Details

Defining struct pointer inside struct

I got struct like this: typedef struct runnable { /* something */ struct runnable *next; } runnable_t; And in some function: int myFun(runnable_t runnable) { /* something */ runnable.next = NULL; pool->first = &runnable; pthread_cond_signal(&(pool->myCond)); pthread_mutex_unlock(&(pool->lock)); } And, inside some other func2: if (pool->first == NULL) pthread_cond_wait(&(pool->myCond), &(pool->lock)); printf(“%d\n”,pool->first); Ok, so: myFunc should set runnable->next…

Details