A real example of vioplot in R (sample data and code attached)
Basic information
- Package name: vioplot
- Package homepage: https://cran.r-project.org/web/packages/vioplot/index.html
- Usage: https://cran.r-project.org/web/packages/vioplot/vioplot.pdf
R code
install.packages('sm') # dependency
install.packages('vioplot')
library(vioplot)
coverage = read.csv("/Users/xubowen/Downloads/coverage.csv")
Statements <- coverage$Statements
Branches <- coverage$Branches
Functions <- coverage$Functions
Lines <- coverage$Lines
vioplot(Statements,Branches,Functions,Lines,names=c("Statements","Branches","Functions","Lines"), col=c("gold"))
Result
Sample data
Project | Statements | Branches | Functions | Lines |
---|---|---|---|---|
workpresstech#smartcontract-ico/cases/39 | 1.23 | 1 | 3.45 | 1.5 |
workpresstech#smartcontract-ico/cases/35 | 1.23 | 0.94 | 3.49 | 1.49 |
vitaliy-kuzmich#bets/cases/1 | 0.96 | 0 | 6.25 | 0.81 |
telcoin#ico/cases/2 | 90 | 73.61 | 91.3 | 89.69 |
telcoin#ico/cases/1 | 82.08 | 82.29 | 87.5 | 81.36 |
status-im#status-network-token/cases/7 | 41.39 | 32.01 | 54.7 | 45.01 |
status-im#status-network-token/cases/4 | 43.67 | 31.43 | 55 | 44.35 |
ruthlessammo#chainlist/cases/1 | 100 | 100 | 100 | 100 |
palanisn#civic-ledger-test/cases/1 | 97.73 | 55 | 90.91 | 98.04 |
modum-io#tokenapp-smartcontract/cases/1 | 84.51 | 68.89 | 86.21 | 84.62 |
mavinnetwork#smart-contract/cases/38 | 1.23 | 1 | 3.45 | 1.5 |
mavinnetwork#smart-contract/cases/34 | 1.23 | 0.94 | 3.49 | 1.49 |
madhancr#splitter_contract/cases/1 | 76.47 | 33.33 | 75 | 93.33 |
kikohash#solidity/cases/39 | 1.23 | 1 | 3.45 | 1.5 |
kikohash#solidity/cases/35 | 1.23 | 0.94 | 3.49 | 1.49 |
jinliman#solidity/cases/48 | 1.23 | 1 | 3.45 | 1.5 |
jinliman#solidity/cases/44 | 1.23 | 0.94 | 3.49 | 1.49 |
iamtrask#Sonar/cases/3 | 89.29 | 68.75 | 90 | 90.91 |
gointollc#etherep-contracts/cases/3 | 80.26 | 67.86 | 84 | 81.61 |
gointollc#etherep-contracts/cases/1 | 73.91 | 70 | 93.1 | 71.95 |
gnosis#owl-token/cases/1 | 8.63 | 7.14 | 23.08 | 8.45 |
galactictourist#SolidityFooCoin/cases/22 | 1.23 | 1 | 3.45 | 1.5 |
galactictourist#SolidityFooCoin/cases/18 | 1.23 | 0.94 | 3.49 | 1.49 |
ethereum-alarm-clock#ethereum-alarm-clock/cases/7 | 26.16 | 25.32 | 21.6 | 28.27 |
epicluckycoin#smartcontract/cases/1 | 87.1 | 55.88 | 93.75 | 87.69 |
eloplay#eloplay-token/cases/2 | 71.91 | 59.26 | 63.64 | 70.93 |
deconet#DeconetSmartContracts/cases/5 | 80 | 41.67 | 78.95 | 80.77 |
cryptoironbank#contracts/cases/48 | 1.23 | 1 | 3.45 | 1.5 |
cryptoironbank#contracts/cases/44 | 1.23 | 0.94 | 3.49 | 1.49 |
consensus-ai#sen-contracts/cases/1 | 83.8 | 65.48 | 89.36 | 83.77 |
connectjob#CJToken/cases/8 | 70.11 | 58.7 | 68 | 70.79 |
clearmatics#asset-token/cases/4 | 35.29 | 16.67 | 46.15 | 35.9 |
clearmatics#asset-token/cases/3 | 41.18 | 32.35 | 53.33 | 43.68 |
chris-bluemoon#OpenZeppelin/cases/44 | 1.23 | 0.94 | 3.49 | 1.49 |
canepat#b9lab-rockpaperscissors/cases/1 | 7.35 | 4.76 | 6.67 | 8.2 |
bvand#ethereum-wtp/cases/4 | 40.43 | 25 | 58.33 | 45.61 |
bvand#ethereum-wtp/cases/3 | 79.63 | 59.38 | 92.86 | 81.54 |
bodhiproject#bodhi-core/cases/1 | 87.92 | 72.3 | 90 | 88.51 |
bitpopulous#populous-smartcontracts/cases/5 | 32.99 | 12 | 34.88 | 31.43 |
bitpopulous#populous-smartcontracts/cases/4 | 58.42 | 26.92 | 65.91 | 58.72 |
bitpopulous#populous-smartcontracts/cases/3 | 63.46 | 30.77 | 72.73 | 66.07 |
bitpopulous#populous-smartcontracts/cases/1 | 72.44 | 35.48 | 77.78 | 73.88 |
assafmo#PotOfEther/cases/1 | 98.33 | 95.83 | 87.5 | 98.44 |
Vutov#DApps-BettingContract/cases/2 | 95.16 | 71.88 | 88.24 | 94.59 |
Vutov#DApps-BettingContract/cases/1 | 95.08 | 73.33 | 88.24 | 94.52 |
V0idWayfarer#zep/cases/42 | 1.23 | 1 | 3.45 | 1.5 |
V0idWayfarer#zep/cases/38 | 1.23 | 0.94 | 3.49 | 1.49 |
USDXToken#USDX-token/cases/2 | 81.58 | 53.13 | 83.78 | 80.16 |
Telegram-ICO#GRAM/cases/49 | 1.23 | 1 | 3.45 | 1.5 |
Telegram-ICO#GRAM/cases/45 | 1.23 | 0.94 | 3.49 | 1.49 |
SpringRole#smart-contracts/cases/2 | 64.57 | 39.71 | 61.7 | 62.14 |
SpringRole#smart-contracts/cases/1 | 64.57 | 39.71 | 61.7 | 62.14 |
SelfKeyFoundation#staked-access/cases/1 | 92.86 | 68.18 | 88.24 | 89.74 |
Riksi#Sonar/cases/3 | 89.29 | 68.75 | 90 | 90.91 |
PolymathNetwork#polymath-core-deprecated/cases/35 | 17.62 | 9.26 | 22.73 | 17.09 |
PolymathNetwork#polymath-core-deprecated/cases/34 | 17.62 | 9.26 | 22.73 | 17.09 |
PolymathNetwork#polymath-core-deprecated/cases/30 | 17.62 | 9.26 | 22.73 | 17.09 |
PolymathNetwork#polymath-core-deprecated/cases/14 | 15.1 | 7.84 | 20.59 | 14.79 |
OpenZeppelin#openzeppelin-solidity/cases/49 | 1.23 | 1 | 3.45 | 1.5 |
OpenZeppelin#openzeppelin-solidity/cases/45 | 1.23 | 0.94 | 3.49 | 1.49 |
OpenSTFoundation#openst-protocol/cases/2 | 55.2 | 42.5 | 58.78 | 54.37 |
NetTrafficGroup#OpenZeppelin-Muzz/cases/49 | 1.23 | 1 | 3.45 | 1.5 |
NetTrafficGroup#OpenZeppelin-Muzz/cases/45 | 1.23 | 0.94 | 3.49 | 1.49 |
Narongsaewa#openzeppelin/cases/22 | 1.23 | 1 | 3.45 | 1.5 |
Narongsaewa#openzeppelin/cases/18 | 1.23 | 0.94 | 3.49 | 1.49 |
MainframeHQ#contracts/cases/5 | 46.09 | 31.03 | 52 | 45.93 |
MADANA-IO#zeppelin-pull-requests/cases/39 | 1.23 | 1 | 3.45 | 1.5 |
MADANA-IO#zeppelin-pull-requests/cases/35 | 1.23 | 0.94 | 3.49 | 1.49 |
Distense#distense-contracts/cases/1 | 76.11 | 47.44 | 82.46 | 75.59 |
DataBrokerDAO#dtx-crowdsale-contracts/cases/1 | 92.68 | 61.43 | 94.12 | 92.94 |
ConsenSys#PLCRVoting/cases/8 | 80.74 | 69.35 | 82.05 | 82.44 |
ConsenSys#PLCRVoting/cases/12 | 60.92 | 26.32 | 56.67 | 60.92 |
CastlePeakGame#Contracts/cases/48 | 1.23 | 1 | 3.45 | 1.5 |
CastlePeakGame#Contracts/cases/44 | 1.23 | 0.94 | 3.49 | 1.49 |
BlockchainLabsNZ#gambit/cases/1 | 97.3 | 70.83 | 92.31 | 97.37 |
BitGuildPlatform#Crowdsale/cases/1 | 56.84 | 37.5 | 61.9 | 59.57 |
Bit-Nation#nation-framework/cases/2 | 100 | 70.59 | 100 | 98.78 |
Bassel85#zeppelin-solidity/cases/22 | 1.23 | 1 | 3.45 | 1.5 |
Bassel85#zeppelin-solidity/cases/18 | 1.23 | 0.94 | 3.49 | 1.49 |
Antibody#Solidity/cases/49 | 1.23 | 1 | 3.45 | 1.5 |
Antibody#Solidity/cases/45 | 1.23 | 0.94 | 3.49 | 1.49 |
AdChain#AdChainRegistry/cases/13 | 77.2 | 41.67 | 86.05 | 75.86 |
AdChain#AdChainRegistry/cases/11 | 76.26 | 39.19 | 78.72 | 75.24 |
64-Corp#zeppelin-solidity/cases/17 | 1.23 | 1 | 3.45 | 1.5 |
64-Corp#zeppelin-solidity/cases/13 | 1.23 | 0.94 | 3.49 | 1.49 |
0xcaff#splitter-contract/cases/1 | 57.14 | 16.67 | 100 | 56.25 |
A real example of vioplot in R (sample data and code attached)的更多相关文章
- R之data.table -melt/dcast(数据合并和拆分)
p.p1 { margin: 0.0px 0.0px 0.0px 0.0px; font: 30.0px "Helvetica Neue"; color: #323333 } p. ...
- R之data.table速查手册
R语言data.table速查手册 介绍 R中的data.table包提供了一个data.frame的高级版本,让你的程序做数据整型的运算速度大大的增加.data.table已经在金融,基因工程学等领 ...
- R语言data.table包fread读取数据
R语言处理大规模数据速度不算快,通过安装其他包比如data.table可以提升读取处理速度. 案例,分别用read.csv和data.table包的fread函数读取一个1.67万行.230列的表格数 ...
- R语言Data Frame数据框常用操作
Data Frame一般被翻译为数据框,感觉就像是R中的表,由行和列组成,与Matrix不同的是,每个列可以是不同的数据类型,而Matrix是必须相同的. Data Frame每一列有列名,每一行也可 ...
- R语言 data.frame 大全
A data frame is used for storing data tables. It is a list of vectors of equal length. For example, ...
- R(7): data.table
这个包让你可以更快地完成数据集的数据处理工作.放弃选取行或列子集的传统方法,用这个包进行数据处理.用最少的代码,你可以做最多的事.相比使用data.frame,data.table可以帮助你减少运算时 ...
- 转载:R语言Data Frame数据框常用操作
Data Frame一般被翻译为数据框,感觉就像是R中的表,由行和列组成,与Matrix不同的是,每个列可以是不同的数据类型,而Matrix是必须相同的. Data Frame每一列有列名,每一行也可 ...
- R abalone data set
#鲍鱼数据集aburl <- 'http://archive.ics.uci.edu/ml/machine-learning-databases/abalone/abalone.data' ab ...
- R 给data.frame(dataframe)添加一列
x<-data.frame(apple=c(1,4,2,3),pear=c(4,8,5,2)) x # apple pear # 1 1 4 # 2 4 8 # 3 2 5 # 4 3 2 x$ ...
随机推荐
- python基础-requests模块、异常处理、Django部署、内置函数、网络编程
网络编程 urllib的request模块可以非常方便地抓取URL内容,也就是发送一个GET请求到指定的页面,然后返回HTTP的响应. 校验返回值,进行接口测试: 编码:把一个Python对象编码转 ...
- GMA Round 1 YGGDRASIL
传送门 YGGDRASIL 在YGGDRASIL世界,一年有213天. Demiurge推广种植了一种植物,姑且称之为“黄金果”,它第一期生长需要140天,此后第i期生长需要的天数$a_i$满足$a_ ...
- ajax01
ajax01 1.ajax简介 涉及AJAX的操作页面不能用文件协议访问 使用ajax发送请求: send参数缺省默认为null onreadyatatechange事件在状态改变时就会触发. .re ...
- JSP(7)—EL和JSTL
一.EL表达式: 1.简介:EL全称为Expression Language,原本是JSTL1.0为方便存储数据所定义的语言,当时只能在JSTL标签中 使用,到了JSTL2.0之后,EL已经成为正式纳 ...
- Docker技术快速精通指南
doctor专业网站:http://www.dockerinfo.net/ Docker中文文档 csdn 的docker专栏: Docker技术快速精通指南
- Android的Databinding-单向绑定
两种方式实现观察绑定. 一.POJO类实现android.databinding.Observable,在属性set方法中调用notifyPropertyChanged(BR.lastName); 其 ...
- 对Android中的堆栈的理解(Stack)
版权声明:本文为博主原创文章,未经博主允许不得转载. https://blog.csdn.net/Ln_ZooFa/article/details/50337529 堆栈空间分配 栈(操作系统): ...
- ASP.NET Core WebApi
ASP.NET Core WebApi 创建项目 使用VS新建项目,选择ASP.NET Core WebAPI即可. 此时Startup的Configure.ConfigureService方法中如下 ...
- Error-MVC: “/”应用程序中的服务器错误。
ylbtech-Error-MVC: “/”应用程序中的服务器错误. 1.返回顶部 1. “/”应用程序中的服务器错误. 运行时错误 说明: 服务器上出现应用程序错误.此应用程序的当前自定义错误设置禁 ...
- 关于 IIS7.0下文件写入无权限的解决办法
1. 在IIS Web站点上右键 --> 编辑权限 2. 在弹出的窗体上选择[安全]选项卡,如图: 3. 在安全选项卡中点击[编辑]按钮,弹出如图对话框: 4. 点击[添加]按钮,弹出如图对话框 ...