Three years ago, having used R for a few years, I decided to use ggplot2. I wrote a simple R script, to simulate a Polya Urn, to begin using this package. Not long afterwards I was made redundant and my R usage dropped to almost zero. However, I have recently got back into it again, albeit on something of a recreational basis now that I am retired.
Yesterday I downloaded and installed R (v4.0.3), RStudio (v1.4.1103) and ggplot2. All went well until I sourced the Polya Urn script. The line of code containing the call to the function ggplot was simply ignored : no errors or warnings of any kind. The graph just doesn't get plotted and I've no idea which since the same code worked three years ago.
I would be grateful for any help that anyone may be able to offer.