I have a data frame like this
User OS A Windows A Linux B MacOS C Linux C FreeBSD C Windows D Windows
What I want to do is plot two types of statistics.
- The share of users with different number of OSs. So, it would be the fraction of the users with 1 OS, with OS etc.
- The share of users with only one OS and more than one OS.
For this I tried using
tapply(OS, User, unique). But don't know how to go about plotting the results.
I was wondering if this is the right way and what more would I need to do to to get the plots I wanted.