我有以下地图,显示了样本所覆盖的国家:
import pygame, sys, random, time
check_errors=pygame.init()
if check_errors[1]!=0:
print("(!) Had {0} initializing errors, exiting...".format(check_errors[1]))
sys.exit(-1) #ON this line says:IndentationError: unindent does not match any outer indentation level
else:
print("(+) PyGame successfully initialized!")
我的问题:如何增加图形中生成的地图的大小?
我知道在require(rworldmap)
require(tidyverse)
countries <- c("AUS", "AUT", "BEL", "BGR", "BRA", "CAN", "CHE", "CHN", "CYP",
"CZE", "DEU", "DNK", "ESP", "EST", "FIN", "FRA", "GBR", "GRC",
"HRV", "HUN", "IDN", "IND", "IRL", "ITA", "JPN", "KOR", "LTU",
"LUX", "LVA", "MEX", "MLT", "NLD", "NOR", "POL", "PRT", "ROU",
"RUS", "SVK", "SVN", "SWE", "TUR", "TWN", "USA")
countries <- as.tibble(countries) %>%
mutate(covered = TRUE) %>%
rename(countries = value)
map <- joinCountryData2Map(countries, nameJoinColumn = "countries") %>%
subset(continent != "Antarctica")
mapCountryData( map,
nameColumnToPlot='covered',
catMethod='fixedWidth',
numCats=2 ,
addLegend = FALSE,
colourPalette = c("black", "grey"),
borderCol = "white",
oceanCol = 'grey',
mapTitle = "sample coverage")
文档中,我可以设置.Rmd
的块,但这会同时增加地图的大小和结果文档中标题的大小。相反,我想保持标题的大小固定,仅相对于标题增加地图的大小。
感谢您的帮助!