Get the App
SLTechnology News&Howtos  ›  Development  › 

How to use R language to draw scatter chart combined with marginal distribution map

Shulou Source: shulou.com Published: 2022-06-01 09:59:40 09月30日 Update

This article mainly shows you "how to use R language to draw scatter chart combined with marginal distribution map", the content is easy to understand, clear, hope to help you solve doubts, the following let the editor lead you to study and learn "how to use R language to draw scatter chart combined with marginal distribution map" this article.

Mainly use ggExtra combined with ggplot2 two R packets to draw. (superior in simplicity and convenience) use cowplot and ggpubr to draw. (the advantage lies in flexibility and beauty)

We all take the iris dataset as an example in the following drawings.

1. Use ggExtra with ggplot21) traditional scatter chart # librarylibrary (ggplot2) library (ggExtra) # classic plotp

Tags: Edge density distribution map language content function histogram article line map learning help adjustment simplicity beauty one line two code tradition and at the same time name Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple Huawei Shulou Tech Info NVidia Shulou Information