官术网_书友最值得收藏!

How to do it…

Take a look at the following steps:

  1. If you want to check which version of ggplot2 has been installed onto your computer, you can run the following command:
        library(versions)
installed.versions("ggplot2")

The preceding command will show the following output on the console screen:

        > installed.versions("ggplot2")
Checking package in 'C:/rPackages'
(as 'lib' is unspecified)
[1] "2.2.0"
>
  1. Now, to install the required version of any library, you first need to know the version number and how that has been written in the library documentation. Then, use that version number as follows:
      install.versions("ggplot2", versions = "2.2.0")
主站蜘蛛池模板: 页游| 唐山市| 合江县| 南召县| 延寿县| 若尔盖县| 桦南县| 宜兰市| 固阳县| 荆门市| 焉耆| 安仁县| 明星| 舞钢市| 和平县| 新安县| 综艺| 静海县| 广西| 迭部县| 肃南| 吴堡县| 乌拉特后旗| 云梦县| 井冈山市| 德保县| 中方县| 枣庄市| 榆社县| 屯留县| 府谷县| 光山县| 黄浦区| 禹州市| 游戏| 永川市| 万年县| 吴江市| 光山县| 吴旗县| 漳平市|