当前位置: 首页 > news >正文

vr全景网站开发民网东莞网站建设

vr全景网站开发,民网东莞网站建设,工商注册公司流程及费用,宁夏建网站报价SCI#xff0c;CCF#xff0c;EI及核心期刊绘图宝典#xff0c;爆款持续更新#xff0c;助力科研#xff01; 本期分享#xff1a; 【SCI绘图】【热力图系列1 R】多特征相关性分析热力图R语言实现 1.环境准备 library(gplots) library(RColorBrewer) 2.数据示例 ###…SCICCFEI及核心期刊绘图宝典爆款持续更新助力科研 本期分享  【SCI绘图】【热力图系列1 R】多特征相关性分析热力图R语言实现 1.环境准备 library(gplots) library(RColorBrewer) 2.数据示例 ######################################################### ### reading in data and transform it to matrix format #########################################################data - read.csv(dataset.csv, comment.char#) rnames - data[,1] # assign labels in column 1 to rnames mat_data - data.matrix(data[,2:ncol(data)]) # transform column 2-5 into a matrix rownames(mat_data) - rnames # assign row names 3.绘图展示 ######################################################### ### customizing and plotting heatmap ########################################################## creates a own color palette from red to green my_palette - colorRampPalette(c(red, yellow, green))(n 299)# (optional) defines the color breaks manually for a skewed color transition col_breaks c(seq(-1,0,length100), # for redseq(0.01,0.7,length100), # for yellowseq(0.71,1,length100)) # for green# creates a 5 x 5 inch image png(h1_simple.png,width 5*300, # 5 x 300 pixelsheight 5*300,res 300, # 300 pixels per inchpointsize 8) # smaller font sizeheatmap.2(mat_data,cellnote mat_data, # same data set for cell labelsmain Correlation, # heat map titlenotecolblack, # change font color of cell labels to blackdensity.infonone, # turns off density plot inside color legendtracenone, # turns off trace lines inside the heat mapmargins c(12,9), # widens margins around plotcolmy_palette, # use on color palette defined earlierbreakscol_breaks, # enable color transition at specified limitsdendrogramrow, # only draw a row dendrogramColvNA) # turn off column clustering############################################################################## # NOTE ############################################################################## # The color breaks above will yield a warning # ...unsorted breaks will be sorted before use since they contain # (due to the negative numbers). To avoid this warning, you can change the # manual breaks to: # # col_breaks c(seq(0,1,length100), # for red # seq(1.01,1.7,length100), # for yellow # seq(1.71,2,length100)) # for green # # However, the problem is then that our heatmap contains negative values # which will then not be colored correctly. Remember that you dont need to # provide manual color breaks at all, this is entirely optional. ##############################################################################dev.off() 完整代码 library(gplots) library(RColorBrewer)######################################################### ### reading in data and transform it to matrix format #########################################################data - read.csv(dataset.csv, comment.char#) rnames - data[,1] # assign labels in column 1 to rnames mat_data - data.matrix(data[,2:ncol(data)]) # transform column 2-5 into a matrix rownames(mat_data) - rnames # assign row names######################################################### ### customizing and plotting heatmap ########################################################## creates a own color palette from red to green my_palette - colorRampPalette(c(red, yellow, green))(n 299)# (optional) defines the color breaks manually for a skewed color transition col_breaks c(seq(-1,0,length100), # for redseq(0.01,0.7,length100), # for yellowseq(0.71,1,length100)) # for green# creates a 5 x 5 inch image png(h1_simple.png,width 5*300, # 5 x 300 pixelsheight 5*300,res 300, # 300 pixels per inchpointsize 8) # smaller font sizeheatmap.2(mat_data,cellnote mat_data, # same data set for cell labelsmain Correlation, # heat map titlenotecolblack, # change font color of cell labels to blackdensity.infonone, # turns off density plot inside color legendtracenone, # turns off trace lines inside the heat mapmargins c(12,9), # widens margins around plotcolmy_palette, # use on color palette defined earlierbreakscol_breaks, # enable color transition at specified limitsdendrogramrow, # only draw a row dendrogramColvNA) # turn off column clustering############################################################################## # NOTE ############################################################################## # The color breaks above will yield a warning # ...unsorted breaks will be sorted before use since they contain # (due to the negative numbers). To avoid this warning, you can change the # manual breaks to: # # col_breaks c(seq(0,1,length100), # for red # seq(1.01,1.7,length100), # for yellow # seq(1.71,2,length100)) # for green # # However, the problem is then that our heatmap contains negative values # which will then not be colored correctly. Remember that you dont need to # provide manual color breaks at all, this is entirely optional. ##############################################################################dev.off()
http://www.zqtcl.cn/news/420611/

相关文章:

  • 南京调查公司网站杭州一起做网站
  • 不关站备案wordpress内网网站模板
  • 做学术用的网站如果在各大网站做免费的网络推广
  • 设计素材网站线上网站数据报表
  • 做一个小型网站多少钱wordpress 手机商城模板
  • 谷歌网站收录提交金山网站建设关键词排名
  • 域名备案中网站可以开通个人网站开发多少钱
  • 西安维护网站广州公司网站设计制作
  • 荆门做网站网络推广公司多久能回本
  • 搜索网站存在的关键字室内设计公司排名榜
  • 响应式网页开发昆明网站排名优化公司哪家好
  • 如东建设局网站线上购物平台
  • 重庆网站推广营销淘宝的网站怎么做的好
  • 重庆企业建站模板珠海企业官网设计制作
  • 网页作图软件东莞优化哪家好
  • 专业的商城网站开发深圳网站界面设计
  • 做网站需要自备服务器吗专业生产车间设计图纸网站
  • 用vs2010做网站教程昆明模板建站定制网站
  • dedecms网站模板下载做网站价格需要多少钱
  • 昆明餐饮网站建设建电影网站教程
  • 怎么做服装网站wordpress 主题 三栏
  • 个人可否建立网站全包装修
  • 哈尔滨网站建设贴吧网站建设推广好做吗
  • 南宁网站建设排名制作网站的公司做网站去哪里找
  • 网站开发外贸材料信息价查询网站
  • 推荐几个好的seo网站程序模板WordPress博客建站系统
  • 手机网站建设推广方案ppt模板wordpress文章阅读统计
  • 自己可以接单做网站吗建设项目所在地公共媒体网站
  • 哈尔滨网站制作哪儿好薇学校网站首页代码html
  • 网站建设与设计 毕业设计企业自助网站建设