本文へスキップ
からだにいいもの

Rのトピックスを中心に『まだ、まだ、知らない、役に立つ情報?』を発信します。

Analysis in R: “CatterPlot” package: SCATTER PLOT with cat symbols!

This package is for those who want to create scatter charts with cat symbols. I don’t know if it rhymes, but the “s” in “scatter” has been removed and it’s “catter”. The cat symbols seem to be added from time to time.

The code for saving, loading, and plotting images in the package may be helpful.

・GitHub:Gibbsdavidl/CatterPlot
 https://github.com/Gibbsdavidl/CatterPlot

Package version is 0.0.2. Checked with R version 4.2.2.

Install Package

Run the following command.

#Install Package
install.packages("devtools")
devtools::install_github("Gibbsdavidl/CatterPlot")
スポンサーリンク

Example

See the command and package help for details.

#Loading the library
library("CatterPlot")

#Plotting symbols with cats:catplot command
#Specify symbol type:catmode;
par(mfrow=c(2,2))
for(n in seq(length(catdat))){

catplot((1:10), (1:10), size = 0.2, catmode = n, title = paste0("Cat No.", n))

}

Output Example

・Cat No.1-4

CatterPlot1

・Cat No.5-8

CatterPlot2

・Cat No.9-11

CatterPlot3

I hope this makes your analysis a little easier !!

このコードの続きをAIに聞く

スポンサーリンク
Prices and shipping availability may change. Please refer to the product page at time of purchase.
Content displayed on this site is provided by Amazon and may be updated or removed.
Amazon Associate, karada-good earns income through qualifying sales.