For the follwoing data that represents the flow of the tourist by months for these five countries, I would like to draw a multiple bar plot such that one row of the mutliple bar plot represents the flow of tourists for a certain country for 12 months and on the top of it, the next row represents the flow of tourists for another country for 12 months and so on.
consider a follwoing data (tourist flow in millions):
set.seed(19881003)
Australia <- (runif(12,0,1))
France <- (runif(12, 0,1) + Australia)
UnitedKingdom <- rbinom(12,2, 0.6)
USA <- rpois(12,0.06)+UnitedKingdom
Italy <- UnitedKingdom+USA+0.012
months <- c("Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov","Dec")
#
tourist.data <- data.frame(months, Australia, France, UnitedKingdom, USA, Italy)
It would be great if you could plot mutliple bar plot such that countries are plotted on x axis and months are plotted on y-axis. One row should represent the tourist flow of a particular country for 12 months. The other row on the top of it represents the bar plot of the tourist flow of a another country for the same 12 months.
It would also be great if I could choose to order the country (i.e, which country to plot at the bottom, followed by the choosen countries at top).
Would be very grateful if anyone could help me with this.
Multiple bar plots of the data frame with adjajency matrix could be plotted with the help of igraph package to by determinging edges and vertices. But I have no idea of how it could be done with data frame that has incidence matrix structure. Thanks
To be precise I can provide an example of the multiple bar plot for the following data frame with adjacency structure. Consider the following data frame that represents the flow of tourists from one country to another from among 5 countries.
I have also attached the output. I need similar output of countries but across months (not country to country) Hope this information helps