axis.title = element_blank()) + annotation_scale(location = "bl") + annotation_north_arrow(location = "tl", style = north_arrow_nautical( fill = c("grey40", "white"), line_col = "grey20")) + annotation_custom(ggplotGrob(fig2), xmin= 122,xmax = 138, ymin=15,ymax = 29) -...
一张标准的地图需要有比例尺,地图及指北针,所以这次我们加上比例尺与指北针,通过ggspatial包,调用annotation_scale来增加比例尺。location = "bl"是调整比例尺位置,width_hint = 0.3调整比例的长度。 annotation_north_arrow则是用来添加指北针。style =north_arrow_nautical来更改指北针的类型,主要有north_arrow_orienteer...
annotation_scale(location = "br",text_cex = 0.8, text_family = "ibmplexsans") + annotation_north_arrow(location = "tr", style = north_arrow_fancy_orienteering( fill = c("grey40", "white"), line_col = "grey20"))+ theme_minimal() + theme( plot.background = element_rect(colour ...
annotation_scale(location="br")+# 设置距离刻度尺 annotation_north_arrow(location="tl",style = north_arrow_nautical( fill=c("grey40","white"),line_col="grey20" ))+ labs(x=NULL,y=NULL)+ geom_sf(data=shp2,fill="#AFB3B3",size=0.4,color="gray71")+#添加地图边界 xlim(120,120.6)+y...
pheatmap(TEST,scale ="row", annotation_col = annotation_col,gaps_col =10,cluster_cols =FALSE,gaps_row =25,cluster_rows =FALSE) 展示行或者列的label labels_row = c("gene1","","","","","","","","","","","","","","","","","","","","","","","","","",""...
annotation_scale(location ="bl", width_hint =0.3, # bar_cols = c("#be64ac", "#5ac8c8"), text_family ="songti") + annotation_north_arrow(location ="tr", which_north ="false", pad_x = unit(0.5,"cm"), pad_y = unit(0.5,"cm"), ...
一张标准的地图需要有比例尺,地图及指北针,所以这次我们加上比例尺与指北针,通过ggspatial包,调用annotation_scale来增加比例尺。location = "bl"是调整比例尺位置,width_hint = 0.3调整比例的长度。annotation_north_arrow则是用来添加指北针。style =north_arrow_nautical来更改指北针的类型,主要有north_arrow_orienteerin...
annotation_scale(location ="bl") + # spatial-aware automagic north arrow annotation_north_arrow(location ="tl", which_north ="false", style = north_arrow_fancy_orienteering) 这里可以看到,我们没有使用常规的WGS84坐标,而是采用+proj=laea +lat_0=4...
pheatmap(head(data,n=30),scale='row',annotation_col=annotation_col) 注:annotation_col设置样本分类 其他重要参数: clustering_distance_rows = 'correlation'#设置行聚类使用的聚类方法,也可以自定义方式 breaks#用于调整区间 cluster_row = FALSE#表示行不聚类 ...
rows = F, scale = "none",treeheight_col= 0, treeheight_row = 0, annotation_legend = ...