Relative Content

Tag Archive for bar-chartrstudiolegend

Why is the coding for legend on my barplot not working after update?

I updated Rstudio and suddently none of my legends are working on my barplots. It’s my first time askign for help on here, so hopefully I am providing the info needed to get answers? Coding is below. The code for the table and the barlplot work fine, but when I add in the legend it says “Error in (function (s, units = “user”, cex = NULL, font = NULL, vfont = NULL, : plot.new has not been called yet”