Plot multiple barcharts on the same page

Hello all,

I am new to R studio and interested to know how to plot multiple bar charts similar to the attached image.

I have my data from excel.


Source: Analysis and modeling of changes in online shopping behavior due to Covid-19 pandemic: A Florida case study - ScienceDirect

Hi @Yahialion,
Welcome to the RStudio Community Forum.

You can achieve this sort of combined graphics output using the patchwork R package:

First you must create each graph; I suggest using the ggplot2 package which is bundled in the tidyverse. You can use the readxl package to import your Excel data.

Hello DavoWW,
I have around 30 categorical variable and want to get bar chart for each one of them

I used the following code but seems not working


This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.