基本的なプロット。シェープファイルを読み、DBFから属性値も読み込む。 # load library library(maptools) # shapefile path shapefile <- 'c:\\users\\imakihi\\project\\riparian\\gisdata\\glo_random_channel_type.shp' # check metadata str(getinfo.shape(shapefile)) # create a map object x <- read.shape(shapefile) # plot data plot(x) # check data length and an attribute structure length(x$Shapes) attributes(x) attributes(x$Shapes) attribut