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$ ...
随机推荐
- Java中Double类型的精确计算
import java.math.BigDecimal; public class DoubleUtil { private static final int DEF_DIV_SCALE = 5; / ...
- 3、css初识
前端内容就分三部分html.css.javascript(js),对一个网页来说html相当于是一个裸体的人,css相当于给这个人穿上了衣服,javascript相当于给这个人赋予动作行为,今天我们要 ...
- dom4j解析xml字符串实例
DOM4J 与利用DOM.SAX.JAXP机制来解析xml相比,DOM4J 表现更优秀,具有性能优异.功能强大和极端易用使用的特点,只要懂得DOM基本概念,就可以通过dom4j的api文档来解析xml ...
- 透明Panel
unit TransparentPanel; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Varia ...
- .NET Core中使用IHostedService结合队列执行定时任务
最近遇到了这样的场景:每隔一段时间,需要在后台使用队列对一批数据进行业务处理. Quartz.NET是一种选择,在 .NET Core中,可以使用IHostedService执行后台定时任务.在本篇中 ...
- MYSQL千万级数据量的优化方法积累
1.对查询进行优化,应尽量避免全表扫描,首先应考虑在 where 及 order by 涉及的列上建立索引. 2.应尽量避免在 where 子句中对字段进行 null 值判断,否则将导致引擎放弃使用索 ...
- 2012服务器在IIS部署的SLL(https)网址谷歌浏览器无法访问的问题解决
服务器环境:Windows Server 2012,IIS8. 当绑定了https,使用IE和Firefox浏览器能够正常访问,但是使用谷歌浏览器会出现net::ERR_CONNECTION_ABOR ...
- 导入的eclipse 中 maven项目,项目中已经加入lombok.jar包,但是不能编译成功
原文地址:http://bbs.csdn.net/topics/390854507/ 答案是最后一个:单击工程名 Maven->Update Project
- SpringBoot项目接口第一次访问慢的问题
SpringBoot的接口第一次访问都很慢,通过日志可以发现,dispatcherServlet不是一开始就加载的,有访问才开始加载的,即懒加载. 2019-01-25 15:23:46.264 IN ...
- iOS 出现内存泄漏的几种原因
一.从AFNet 对于iOS开发者,网络请求类AFNetWorking是再熟悉不过了,对于AFNetWorking的使用我们通常会对通用参数.网址环境切换.网络状态监测.请求错误信息等进行封装.在封装 ...