r - 如何绘制空间对象的方角?
问题描述
一些数据:
require(sp)
require(rgeos)
pts1 = cbind(seq(50,850,100), 50)
pts2 = cbind(seq(50,850,100), 150)
df = data.frame(1:18)
ptss <- rbind(pts1,pts2)
Spts <- SpatialPointsDataFrame(ptss, df)
sPts.B <- gBuffer(Spts, byid=TRUE, width=48, capStyle="SQUARE")
plot(sPts.B)
结果就是我正在寻找的,一种网格。sPts.B
用lwd=4
导致圆角的正方形绘图,但我想收到方角。使用绘图参数lend
只会产生一个方角。
如何让所有的角落都是正方形的?
解决方案
推荐阅读
- azure - HDInsight Kafka 群集无法访问主存储 Blob 帐户
- python - python pandas DatetimeIndex如何获得一个月的第一天?
- javascript - 调试打印没有按顺序发生
- javascript - Getting error as "setCustomValidity is not a function"
- excel - VBA:从另一张表中获取参考值作为过滤条件
- javascript - Vue.js 和构建多页 Web 应用程序 - 组件注册
- ruby-on-rails - PostsController#index 中的 ActionController::UnknownFormat
- python - 使用 python 在 S3 中进行 Redshift COPY csv
- java - 如何使用带有哨兵的while循环重复输入
- tensorflow - 从单个图像检测多个对象(无边界框训练)