Sanjay, I am using SGPLOT (in SAS 9.4) to create a stacked bar chart. Each subject has 5 visits (Visit…