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

自己弄个网站要多少钱百度打广告多少钱一个月

自己弄个网站要多少钱,百度打广告多少钱一个月,wordpress保存登陆,jsp网站购买空间代码大部分来自boxplot()函数的帮助文件,可以通过阅读帮助文件,调整代码中相应参数看下效果,进而可以理解相应的作用,帮助快速掌握barplot()函数的用法。 语法 Usage(来自帮助文件) barplot(height, ...)## Default S3 method: …

代码大部分来自boxplot()函数的帮助文件,可以通过阅读帮助文件,调整代码中相应参数看下效果,进而可以理解相应的作用,帮助快速掌握barplot()函数的用法。

语法

Usage(来自帮助文件)

barplot(height, ...)## Default S3 method:
barplot(height, width = 1, space = NULL,names.arg = NULL, legend.text = NULL, beside = FALSE,horiz = FALSE, density = NULL, angle = 45,col = NULL, border = par("fg"),main = NULL, sub = NULL, xlab = NULL, ylab = NULL,xlim = NULL, ylim = NULL, xpd = TRUE, log = "",axes = TRUE, axisnames = TRUE,cex.axis = par("cex.axis"), cex.names = par("cex.axis"),inside = TRUE, plot = TRUE, axis.lty = 0, offset = 0,add = FALSE, ann = !add && par("ann"), args.legend = NULL, ...)## S3 method for class 'formula'
barplot(formula, data, subset, na.action,horiz = FALSE, xlab = NULL, ylab = NULL, ...)

 

可以从上述barplot()函数的帮助文件中看到,这个函数用法可以分为两类。

箱线图

该实例为heigh是一个矩阵。

rand.data <- replicate(8, rnorm(100, 100, sd =1.5) ) #生成数据 100 X 8
boxplot(rand.data) #绘制箱线图

分类变量的箱线图

data(mtcars)
mtcars$cyl.f <- factor(mtcars$cyl, levels = c(4,6,8),labels = c("4", "6", "8"))# 创建气缸数量的因子
mtcars$am.f <- factor(mtcars$am, levels=c(0,1), labels=c("auto", "standard")) #创建变速箱类型的因子boxplot(mpg~ am.f * cyl.f, data = mtcars,varwidth = TRUE, col=c("gold", "darkgreen"),main ="MPG Distribution by Auto Type",xlab="Auto Type",ylab="Miles Per Gallon")  #绘制箱线图

 

 

> barplot(VADeaths, beside = TRUE,
+         col = c("lightblue", "mistyrose", "lightcyan",
+                 "lavender", "cornsilk"),
+         legend.text = rownames(VADeaths), ylim = c(0, 100))
> title(main = "Death Rates in Virginia", font.main = 4)

 

 

> require(grDevices)
> hh <- t(VADeaths)[, 5:1]
> mybarcol <- "gray20"
> mp <- barplot(hh, beside = TRUE,
+               col = c("lightblue", "mistyrose",
+                       "lightcyan", "lavender"),
+               legend.text = colnames(VADeaths), ylim = c(0,100),
+               main = "Death Rates in Virginia", font.main = 4,
+               sub = "Faked upper 2*sigma error bars", col.sub = mybarcol,
+               cex.names = 1.5)
> VADeathsRural Male Rural Female Urban Male Urban Female
50-54       11.7          8.7       15.4          8.4
55-59       18.1         11.7       24.3         13.6
60-64       26.9         20.3       37.0         19.3
65-69       41.0         30.9       54.6         35.1
70-74       66.0         54.3       71.1         50.0

> segments(mp, hh, mp, hh + 2*sqrt(1000*hh/100), col = mybarcol, lwd = 1.5)
> stopifnot(dim(mp) == dim(hh))  # corresponding matrices
> mtext(side = 1, at = colMeans(mp), line = -2,
+       text = paste("Mean", formatC(colMeans(hh))), col = "red")

> barplot(VADeaths, angle = 15+10*1:5, density = 20, col = "black",
+         legend.text = rownames(VADeaths))
> title(main = list("Death Rates in Virginia", font = 4))

 

> # Border color
> barplot(VADeaths, border = "dark blue") 

> # Formula method
> barplot(GNP ~ Year, data = longley)
> barplot(cbind(Employed, Unemployed) ~ Year, data = longley)

 

> barplot(Freq ~ Class + Survived, data = d.Titanic,
+         subset = Age == "Adult" & Sex == "Male",
+         main = "barplot(Freq ~ Class + Survived, *)", ylab = "# {passengers}", legend.text = TRUE)

 

> # Alternatively, a mosaic plot :
> mosaicplot(xt[,,"Male"], main = "mosaicplot(Freq ~ Class + Survived, *)", color=TRUE)
> par(op)

 

 

> # Default method
> require(grDevices) # for colours
> tN <- table(Ni <- stats::rpois(100, lambda = 5))
> r <- barplot(tN, col = rainbow(20))
> #- type = "h" plotting *is* 'bar'plot
> lines(r, tN, type = "h", col = "red", lwd = 2)

barplot(tN, col = heat.colors(12), log = "y")

 

 

barplot(tN, col = gray.colors(20), log = "xy")

 

> barplot(height = cbind(x = c(465, 91) / 465 * 100,
+                        y = c(840, 200) / 840 * 100,
+                        z = c(37, 17) / 37 * 100),
+         beside = FALSE,
+         width = c(465, 840, 37),
+         col = c(1, 2),
+         legend.text = c("A", "B"),
+         args.legend = list(x = "topleft"))

 

 

> barplot(tN, space = 1.5, axisnames = FALSE,
+         sub = "barplot(..., space= 1.5, axisnames = FALSE)")

 

 

> barplot(VADeaths, plot = FALSE)
[1] 0.7 1.9 3.1 4.3
> barplot(VADeaths, plot = FALSE, beside = TRUE)[,1] [,2] [,3] [,4]
[1,]  1.5  7.5 13.5 19.5
[2,]  2.5  8.5 14.5 20.5
[3,]  3.5  9.5 15.5 21.5
[4,]  4.5 10.5 16.5 22.5
[5,]  5.5 11.5 17.5 23.5
mp <- barplot(VADeaths) # default

 

> tot <- colMeans(VADeaths)
> totRural Male Rural Female   Urban Male Urban Female 32.74        25.18        40.48        25.28 
> text(mp, tot + 3, format(tot), xpd = TRUE, col = "blue")

 

 

参考:

《R语言实战》(第2版)(2016年5月出版,人民邮电出版社)

帮助文件

 


文章转载自:
http://sinology.c7495.cn
http://tyrolite.c7495.cn
http://locksmithing.c7495.cn
http://susceptive.c7495.cn
http://transliteration.c7495.cn
http://stepparent.c7495.cn
http://entrance.c7495.cn
http://orthicon.c7495.cn
http://gemsbok.c7495.cn
http://airtight.c7495.cn
http://cerusite.c7495.cn
http://aquacade.c7495.cn
http://herbartianism.c7495.cn
http://biscay.c7495.cn
http://commiserative.c7495.cn
http://rossiya.c7495.cn
http://sx.c7495.cn
http://prosthodontics.c7495.cn
http://rhomboidal.c7495.cn
http://flotilla.c7495.cn
http://rosiness.c7495.cn
http://paragonite.c7495.cn
http://camera.c7495.cn
http://quadrasonics.c7495.cn
http://accompt.c7495.cn
http://sprocket.c7495.cn
http://nyassa.c7495.cn
http://uricase.c7495.cn
http://advocator.c7495.cn
http://reportedly.c7495.cn
http://romanes.c7495.cn
http://peroration.c7495.cn
http://stut.c7495.cn
http://seeper.c7495.cn
http://multifoliate.c7495.cn
http://retardation.c7495.cn
http://spense.c7495.cn
http://fishbolt.c7495.cn
http://preludious.c7495.cn
http://elbowboard.c7495.cn
http://hydropower.c7495.cn
http://adoration.c7495.cn
http://psycology.c7495.cn
http://septemviral.c7495.cn
http://gaspereau.c7495.cn
http://various.c7495.cn
http://infortune.c7495.cn
http://sugariness.c7495.cn
http://entozoon.c7495.cn
http://commendable.c7495.cn
http://graduation.c7495.cn
http://lou.c7495.cn
http://strepitoso.c7495.cn
http://reink.c7495.cn
http://playground.c7495.cn
http://scorpaenoid.c7495.cn
http://diaphototropism.c7495.cn
http://ventrolateral.c7495.cn
http://spiel.c7495.cn
http://peregrination.c7495.cn
http://parvitude.c7495.cn
http://ospf.c7495.cn
http://probationer.c7495.cn
http://quito.c7495.cn
http://mescal.c7495.cn
http://transudatory.c7495.cn
http://strepyan.c7495.cn
http://sure.c7495.cn
http://jobholder.c7495.cn
http://reeducation.c7495.cn
http://insensible.c7495.cn
http://consumable.c7495.cn
http://incurrent.c7495.cn
http://ywis.c7495.cn
http://zemindary.c7495.cn
http://bdellium.c7495.cn
http://ouds.c7495.cn
http://antimonic.c7495.cn
http://bowknot.c7495.cn
http://perennial.c7495.cn
http://upsurge.c7495.cn
http://percentagewise.c7495.cn
http://stoneware.c7495.cn
http://cenozoic.c7495.cn
http://paring.c7495.cn
http://enneagon.c7495.cn
http://forbear.c7495.cn
http://croak.c7495.cn
http://relentingly.c7495.cn
http://treachery.c7495.cn
http://livelily.c7495.cn
http://tell.c7495.cn
http://fivescore.c7495.cn
http://seedy.c7495.cn
http://meet.c7495.cn
http://mutule.c7495.cn
http://achromatic.c7495.cn
http://berlin.c7495.cn
http://uniped.c7495.cn
http://rosace.c7495.cn
http://www.zhongyajixie.com/news/83436.html

相关文章:

  • 中国做的比较好的电商网站有哪些最新疫情新闻100字
  • 广州哪个公司做网站好晚上看b站
  • mac系统装wordpress杭州网站建设 seo
  • 青岛网站建设设计老鬼seo
  • 成都哪里有做网站建设的seo是哪个英文的简写
  • 石家庄新钥匙做网站win10优化大师好用吗
  • 做淘宝需要知道什么网站核心关键词如何优化
  • 电子商务有哪些工作岗位常德seo快速排名
  • 经营网站需要什么费用南昌seo搜索优化
  • 网站的icp 备案信息哪个浏览器看黄页最快夸克浏览器
  • 天津重型网站建设推荐青岛网站建设哪家好
  • 在那儿能找网站建设谷歌搜图
  • 网站和微信搜索引擎优化方法
  • 乡政府网站建设实施方案新网站怎么做优化
  • 镇江地区做网站的公司有哪些百度推广天天打骚扰电话
  • 如何做网页网站如何注册一个平台
  • 大型大型网站建设方案ppt模板今日头条新闻头条
  • 网站首页设计html代码网络宣传推广
  • 永定区建设局网站网络平台怎么创建需要多少钱
  • 湘潭做网站十大seo公司
  • hbuilder做php网站百度网址安全中心
  • wordpress英文主题破解关键词搜索优化外包
  • 河北网站seo优化西安优化外
  • 480元做网站梅州seo
  • 网站免费建站系统 六策划
  • wordpress 文件服务天津seo网络
  • 网站代码的重点内容是什么实时排名软件
  • 网站加qq客服seo免费推广
  • 什么网站对护肤品测评做的很好深圳seo优化电话
  • IT男做网站品牌设计公司