This package is created to help create your own bubble matrix plot.
library(roxygen2)
roxygenize("/Users/hanbujishenmebuhui/Desktop/my R pkg/bubblematrix")
library(devtools)
check("/Users/hanbujishenmebuhui/Desktop/my R pkg/bubblematrix")
load_all()
bubblematrix::bubble_matrix()
bubblematrix::example_data
#build the package
build("/Users/hanbujishenmebuhui/Desktop/my R pkg/bubblematrix")
There are no errors or warning.
You can install the released version of bubblematrix from GitHub with:
# install.packages("devtools")
devtools::install_github("hyj12345/bubblematrix")
Let's use the data in the package to have a simple test
library(bubblematrix)
data(package="bubblematrix")
example_data<-bubblematrix::example_data
And we can get the information:
And the data
- Just use the default parameters
bubble_matrix(data = example_data)
And we can get the (ploty) plot
- Use the customized parameters
bubble_matrix(data = example_data,percentile = c(0,0.5,1),
labels = c('Lowest part','Highest part'),
color = c('red','black'),
title = 'Bubble matrix plot',subtitle = 'test the pkg'
,caption = '@YJ_Han',ploty_ = FALSE)
And we can get the plot