Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to use the ggarrange () function of ggpubr package in r language

Shulou Source: shulou.com Published: 2022-06-01 05:53:24 09月26日 Update

This article mainly introduces how to use the ggarrange () function of ggpubr package in r language. It is very detailed and has certain reference value. Friends who are interested must finish reading it.

When drawing with ggplot2, if multiple images are spliced together, the legends are the same with each other, such as the following (we use the iris data set built in R language to make three scatter plots)

The code that implements the picture above is

Library (ggplot2)

Library (ggpubr)

Df

Tags: Legend function code parameter time language content layout reference three situation data article result material link top line between value Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Linux Microsoft Docker MariaDB Redmi