上一页 1 ··· 361 362 363 364 365 366 367 368 369 ··· 403 下一页
摘要: 1、 p<-ggplot(mtcars,aes(mpg,hp,colour=factor(cyl)))+geom_point() p 2、调整x轴 p+theme(axis.title.x=element_text(vjust=2, size=20,face = "bold")) p+theme(a 阅读全文
posted @ 2021-01-10 13:37 小鲨鱼2018 阅读(20862) 评论(0) 推荐(0)
摘要: 1、 library(gcookbook) library(ggplot2) p=ggplot(heightweight,aes(x=sex,y=heightIn))+geom_violin() p 2、指定x轴因子水平顺序 heightweight$sex<-factor(heightweight 阅读全文
posted @ 2021-01-10 13:11 小鲨鱼2018 阅读(2540) 评论(0) 推荐(0)
摘要: 1、 p<-ggplot(mtcars,aes(mpg,hp,colour=factor(cyl)))+geom_point() p 2、调整绘图边框的粗细 p + theme(panel.border = element_rect(fill=NA,color="black", size=5, li 阅读全文
posted @ 2021-01-10 12:44 小鲨鱼2018 阅读(18419) 评论(0) 推荐(0)
摘要: 1、 p<-ggplot(mtcars,aes(mpg,hp,colour=factor(cyl)))+geom_point() p 2、调整x轴 p+theme(axis.line.x=element_line(linetype=1,color="black",size=3)) 3、调整x轴刻度线 阅读全文
posted @ 2021-01-10 12:38 小鲨鱼2018 阅读(15831) 评论(2) 推荐(2)
摘要: 1、 p<-ggplot(mtcars,aes(mpg,hp,colour=factor(cyl)))+geom_point() p 2、去除图例 p + theme(legend.position = 'none') 阅读全文
posted @ 2021-01-10 12:22 小鲨鱼2018 阅读(14364) 评论(0) 推荐(0)
摘要: 1、 p<-ggplot(mtcars,aes(mpg,hp,colour=factor(cyl)))+geom_point() p 2、去除背景色 p + theme_bw() 3、去除网格线 p + theme_bw() + theme(panel.grid=element_blank()) 阅读全文
posted @ 2021-01-10 12:19 小鲨鱼2018 阅读(29838) 评论(0) 推荐(1)
摘要: 1、 #include <stdio.h> #define NUMBER 7 int main(void) { int i, a[NUMBER]; for (i = 0; i < NUMBER; i ++) { printf("NO.[%d] = ", i + 1); scanf("%d", &a[ 阅读全文
posted @ 2021-01-09 13:44 小鲨鱼2018 阅读(153) 评论(0) 推荐(0)
摘要: #include <stdio.h> int main(void) { int a[7] = {45,32,86,56,24,98,85}; int min, max; min = a[0]; max = a[0]; int i; for (i = 0; i < 7; i ++) { if (a[i 阅读全文
posted @ 2021-01-09 12:55 小鲨鱼2018 阅读(6616) 评论(0) 推荐(0)
摘要: 1、 #include <stdio.h> #define NUMBER 5 int main(void) { int i; int sum = 0; int a[NUMBER]; puts("please input the scores."); for (i = 0; i < NUMBER; i 阅读全文
posted @ 2021-01-09 12:36 小鲨鱼2018 阅读(177) 评论(0) 推荐(0)
摘要: 1、 #include <stdio.h> int main(void) { int a[7] = {100,200,300,400,500,600,700}; int i; for (i = 0; i < 3; i ++) { int temp = a[i]; a[i] = a[6 - i]; a 阅读全文
posted @ 2021-01-08 23:33 小鲨鱼2018 阅读(1478) 评论(0) 推荐(0)
上一页 1 ··· 361 362 363 364 365 366 367 368 369 ··· 403 下一页