0

I want to make a circos plot from a data frame consisting name of country (first column), fruit (second column) and category (third column). My rule is that if the row of second and third column matches, the corresponding countries are considered to be connected. I have 400x3 dataframe and want to make a plot. Here is example of data:

mydf <- data.frame(country=c('China','Shree Lanka','China','Australia','China','China','Australia','Australia','Australia'),
   Item=c('Apple','Avacado','Avacado','Avacado','Apple','Organge','Apple','Organge','Apple'),
                   Features=c('a','a','c','c','d','d','d','d','a'))

In above example, China and Australia are connected for matching cases, So is between China and Australia, but different combinations (I want to show these combination as well in plot)

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459

0 Answers0