Hi,
I have the following data , which I am trying to use to create a bar chart from to show how preference of fruit varies with country:
personid prefstated surveydt surveyloc site applepref orangepref grapepref bananpref
1 ac11 Disclosed 2021 Canada Farm 1 0 1 0 1
2 dc22 Disclosed 2000 Cuba Farm 3 0 1 1 0
3 ac45 Disclosed 2015 America Farm 1 0 0 0 0
4 dc77 Disclosed 2000 Canada Farm 3 0 0 1 0
I want to create a chart that shows preference of apples, oranges, grapes and bananas based on survey location (i.e x= surveyloc and Y = pref freq of columns 6 -9). I am not quite sure how to do this when dealing with binary categorical data sets and am hoping to get some assistance.