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

申请一个域名后怎么做网站wordpress手赚推广

申请一个域名后怎么做网站,wordpress手赚推广,怎么用织梦源代码做网站,机票网站开发「写在前面」 在科研数据分析中我们会重复地绘制一些图形#xff0c;如果代码管理不当经常就会忘记之前绘图的代码。于是我计划开发一个 R 包#xff08;Biorplot#xff09;#xff0c;用来管理自己 R 语言绘图的代码。本系列文章用于记录 Biorplot 包开发日志。 相关链接… 「写在前面」 在科研数据分析中我们会重复地绘制一些图形如果代码管理不当经常就会忘记之前绘图的代码。于是我计划开发一个 R 包Biorplot用来管理自己 R 语言绘图的代码。本系列文章用于记录 Biorplot 包开发日志。 相关链接 相关代码和文档都存放在了 Biorplot GitHub 仓库 https://github.com/zhenghu159/Biorplot 欢迎大家 Follow 我的 GitHub 账号 https://github.com/zhenghu159 我会不定期更新生物信息学相关工具和学习资料。如果您有任何问题和建议或者想贡献自己的代码请在我的 GitHub 上留言。 介绍 饼状图常用于展示数据的相对比例。饼状图以圆形图案为基础将数据分成不同的扇区每个扇区的大小代表相应数据的相对大小。饼状图可以直观地展示不同数据之间的比例关系帮助观察者快速了解数据的分布情况。 在 Biorplot 中我封装了 Bior_PiePlot() 函数来实现饼状图的绘制。 基础饼状图 绘制一个基础的饼状图如下 绘图代码 value - c(0.1,0.2,0.4,0.1,0.3)type - c(A (10%), B (20%), C (40%), D (10%), E (30%))col - c(#AEC7E8B2, #FFBB78B2, #98DF8AB2, #FF9896B2, #C5B0D5B2)p - Bior_PiePlot(valuevalue, typetype, colcol, titleTest Bior_pie)p 带标签饼状图 绘制一个带有百分比标签的饼状图如下 绘图代码 value - c(0.1,0.2,0.4,0.1,0.3)type - c(A, B, C, D, E)label - c(10%,20%,40%,10%,30%)col - c(#1F77B4B2, #FF7F0EB2, #2CA02CB2, #D62728B2, #9467BDB2)p - Bior_PiePlot(valuevalue, typetype, labellabel, colcol, titleTest Bior_pie, label.x1.2, label.colorwhite, label.size5)p 源码解析 Biorplot::Bior_PiePlot() 函数主要使用了 ggplot2 来绘制饼状图。使用 ggplot2::geom_text() 设置标签文本的显示相关参数 value A vector of value type A vector of type label (defaut: labelNULL); A vector of label col (defaut: colpal_d3(category20,,alpha0.7)(20)); colour for type title (defaut: title); title for plot text.size (defaut: text.size15); text size plot.title.size (defaut: plot.title.size20); plot.title size label.x (defaut: label.x1.2); geom_text x for label label.color (defaut: label.colorwhite); geom_text color for label label.size (defaut: label.size5); geom_text size for label 源码 #%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%# Pie Plot# description Create a Pie plot.## import ggplot2# importFrom ggsci pal_d3## param value A vector of value# param type A vector of type# param label (defaut: labelNULL); A vector of label# param col (defaut: colpal_d3(category20,,alpha0.7)(20)); colour for type# param title (defaut: title); title for plot# param text.size (defaut: text.size15); text size# param plot.title.size (defaut: plot.title.size20); plot.title size# param label.x (defaut: label.x1.2); geom_text x for label# param label.color (defaut: label.colorwhite); geom_text color for label# param label.size (defaut: label.size5); geom_text size for label## return A ggplot object# export## examples# # Examples 1# value - c(0.1,0.2,0.4,0.1,0.3)# type - c(A (10%), B (20%), C (40%), D (10%), E (30%))# col - c(#AEC7E8B2, #FFBB78B2, #98DF8AB2, #FF9896B2, #C5B0D5B2)# p - Bior_PiePlot(valuevalue, typetype, colcol, titleTest Bior_pie)# p## # Examples 2# value - c(0.1,0.2,0.4,0.1,0.3)# type - c(A, B, C, D, E)# label - c(10%,20%,40%,10%,30%)# col - c(#AEC7E8B2, #FFBB78B2, #98DF8AB2, #FF9896B2, #C5B0D5B2)# p - Bior_PiePlot(valuevalue, typetype, labellabel, colcol, titleTest Bior_pie,# label.x1.2, label.colorwhite, label.size5)# p#Bior_PiePlot - function( value, type, labelNULL, colpal_d3(category20,alpha0.7)(20), title, text.size15, plot.title.size20, label.x1.2, label.colorwhite, label.size5){ df - data.frame(valuevalue, typetype) df$label - label df$type - factor(df$type, levelstype) p - ggplot(df, aes(x, yvalue, filltype)) geom_bar(statidentity, width1, colorwhite, position position_stack(reverse T)) coord_polar(y, start0) theme_void() theme(text element_text(size text.size), plot.title element_text(sizeplot.title.size, hjust 0.5), legend.title element_blank()) scale_fill_manual(values col) labs(title title) if (!is.null(label)){ p - p geom_text(aes(x label.x, label label), color label.color, sizelabel.size, position position_stack(reverse T, vjust0.5)) } return(p)}#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 「结束」 注本文为个人学习笔记仅供大家参考学习不得用于任何商业目的。如有侵权请联系作者删除。 本文由 mdnice 多平台发布
http://www.tj-hxxt.cn/news/133901.html

相关文章:

  • 平原县网站seo优化排名云南建投第十建设有限公司网站
  • 百度网站开发基于什么语言站群网站源码
  • 做房产抵押网站需要什么做国外直播网站
  • 怎么建网站做淘宝客页面设置
  • 全国城市雕塑建设官方网站网站 主营业务
  • wordpress多功能图片主题windows优化大师有用吗
  • 白云网站建设价格广告网站定制
  • 石家庄智能模板建站萝岗网站建设制作
  • 云服务器上建网站wordpress怎么上传文件
  • 网站视频大全字体设计网
  • 做企业网站推广多少钱中国有哪些软件公司
  • 做营销网站视频中国建设教育协会的官方网站
  • 手机怎么开网站wordpress 文章没内容
  • 陕西省建设监理协会官方网站营销型企业网站建站
  • 网站信息备案查询淘宝网站运营的工作怎么做
  • 怎样免费做网站视频讲解skype在网站上怎么做链接
  • 长沙做模板网站广告线上推广方式
  • 台州椒江找人做网站安徽津城建设工程有限公司网站
  • 南宁网站建设咨q479185700上墙湖南张家界
  • 加强学科网站建设哈尔滨个人建站模板
  • 国家建设部举报网站有哪些可以做1元夺宝的网站
  • 建立企业网站流程响应式布局代码
  • 南宁网站建设外包wordpress插件安装目录
  • 网站负责人查询php网站建设是什么意思
  • 青岛php网站建设国外网络推广哪家公司好
  • 自助建站免费平台企业信息系统规划的含义及任务
  • 注册网站页面跳转错误wordpress 好用的编辑器
  • 提示网站建设中四会城乡建设局网站
  • 东三省网站建设公司wordpress 首页模版
  • 建一个网站难不难服务好的南京网站建设