我正在绘制一个表面图,并希望“手动”绘制一条等高线使用plotly。在下面的代码I中:
模拟绘制曲面图的数据,使用contoureR软件包在特定z级计算轮廓线的坐标,绘制曲面图和等高线。
# Load packages
library(plotly) # for interactive visualizations
library(contoureR) # for calculating contour coordinates
# Simulate the data for plotting
x <- y <- seq(from = 0, to = 100, by = 1)
z1
我想知道这是否有可能做到这一点。
我有一个数据是SpatialLinesDataFrame,另一个是spatialPolygonDataFrame。是否可以覆盖这两个数据?
当我尝试覆盖它们时,我得到了以下错误:
jd <- overlay(res,hello)
Error in function (classes, fdef, mtable) : unable to find an inherited method for function
‘overlay’ for signature ‘"SpatialLinesDataFrame",