摘要:
1、 [root@PC3 yum.repos.d]# java -version java version "1.7.0_51" OpenJDK Runtime Environment (rhel-2.4.5.5.el7-x86_64 u51-b31) OpenJDK 64-Bit Server V 阅读全文
摘要:
1、 setwd("C:/Users/75377/Desktop/SHEEP_ROH") png("12.png",width = 7000,height = 5500,pointsize = 170) par(mai = c(12,12,12,12),mgp = c(2.1,0.5,0)) #地图 阅读全文
摘要:
1、 > library(REmap) > options(remap.ak = "此处输入个人秘钥") > city_vec = c("Beijing","Haerbin","Shanghai","Guangzhou") > get_city_coord("Shanghai") [1] 121.4 阅读全文
摘要:
plot(1:10,xlab = expression (paste("xxx ",R[2], " (","xx", ")"))) 阅读全文
摘要:
> a <- c(2,5,6,7) > b <- c(6,3,2,9) > c = rbind(a,b) > c [,1] [,2] [,3] [,4] a 2 5 6 7 b 6 3 2 9 > class(c) [1] "matrix" "array" > c <- data.frame(c) 阅读全文
摘要:
1、 > a <- c(3,NA,NA,4,1,5) > b <- c(NA,4,6,2,4,9) > c <- data.frame(a,b) > c a b 1 3 NA 2 NA 4 3 NA 6 4 4 2 5 1 4 6 5 9 > c[is.na(c)] <- 0 > c a b 1 3 阅读全文
摘要:
1、 p<-ggplot(mtcars,aes(mpg,hp,colour=factor(cyl)))+geom_point() p 2、隐去x轴 p + xlab(NULL) 3、 隐去y轴 p + ylab(NULL) 阅读全文
摘要:
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 阅读全文
摘要:
1、 library(gcookbook) library(ggplot2) p=ggplot(heightweight,aes(x=sex,y=heightIn))+geom_violin() p 2、指定x轴因子水平顺序 heightweight$sex<-factor(heightweight 阅读全文
摘要:
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 阅读全文