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

#### 操作步骤

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

```
R
```


  输入install.packages("BiocManager")。

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

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

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