R/TreeMap.R
ggplot_contour_data.RdAkimaのinterpで出力したコンタデータをggplotのgeom_contour で描画できるデータフレームに変換する関数
ggplot_contour_data(interp_res = interp_res)ggplotのgeom_contourで描画できるデータフレーム
plot.name<-"Bunazaka" #"Mimatsu"
interp_res <-rasXYZ[[which(names(rasXYZ)==plot.name)]]
interp_df<-ggplot_contour_data(interp_res)
ggplot2::ggplot() +
ggplot2::geom_contour(data = interp_df, ggplot2::aes(x = x, y = y, z = z), color = "blue")
#> Warning: Removed 187 rows containing non-finite outside the scale range
#> (`stat_contour()`).