Akimaのinterpで出力したコンタデータをggplotのgeom_contour で描画できるデータフレームに変換する関数

ggplot_contour_data(interp_res = interp_res)

Arguments

interp_res

Akimaのinterpで出力したリスト型のコンタデータ

Value

ggplotのgeom_contourで描画できるデータフレーム

Examples

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()`).