---
title: 编译和安装
description: 1. 使用PuTTY工具，以root用户登录服务器。
url: "https://www.hikunpeng.com/document/detail/zh/kunpenghpcs/hpcindapp/prtg-osc/kunpengggplot2_02_0008.html"
---

# 编译和安装

#### 操作步骤

1. 使用PuTTY工具，以root用户登录服务器。
2. 执行以下命令进入R。

```
R
```


  输入install.packages("BiocManager")。

  回显显示信息如下图所示。

3. 执行以下命令安装ggplot2。

```
BiocManager::install("ggplot2")
```
