I have a data frame which have 11 columns. The data is in wide format. 1 column is unique ID. 5 columns represent Social Media apps, while 5 columns represent how much are these apps used (frequency). All the values are categorical. first 5 columns have 0 and 1 which show whether someone uses this app or not. The other 5 columns have values "alot", "few time a day" and "very often". I want to show a plot which shows which social media have what percentage of frequency. I have tried melting data but it gets very confusing. It would be very kind of you to help me. Thanks in Advance!
This is what it looks like
Id | SNS 1 | SNS 2 | SNS 3 | SNS 4 | SNS 5 | Freq 1 | Freq 2 | Freq 3 | Freq 4 | Freq 5 |
---|---|---|---|---|---|---|---|---|---|---|
1 | 1 | 0 | 0 | 1 | 1 | Alot | N/A | N/A | Often | Often |
2 | 0 | 1 | 1 | 1 | 0 | N/A | Often | Alot | Few times | N/A |
I want it to look like
Id | SNS | Values | Freq |
---|---|---|---|
1 | SNS 1 | 1 | Alot |
1 | SNS 2 | 0 | N/A |
1 | SNS 3 | 0 | N/A |
1 | SNS 4 | 1 | Often |
1 | SNS 5 | 1 | Often |