r - 为 GoogleMap 绘图添加透明度(loa 包)

标签 r plot transparency geocoding

我正在尝试使用 loa 包的这个图:

GoogleMap(z ~ lat*lon,col.regions=c("red","yellow"),panel=panel.contourplot)

在这里您可以找到对象: https://dl.dropboxusercontent.com/u/47720440/loaPackage.RData

这是结果图: enter image description here

但我需要为此图添加透明度,以便我可以看到彩色区域后面的内容。我怎样才能做到这一点?

最佳答案

我想我可以用 8 位十六进制模式来实现,但 Roman 是对的。

png(); print( GoogleMap(z ~ lat*lon,col.regions=list("yellow","re​​d"), alpha.regions=list(alpha=.5, alpha=.5) ,panel=panel.contourplot) ); dev.off()

[1]“http://maps.google.com/maps/api/staticmap?center=45.5774096970577,12.540287147873&zoom=9&size=640x311&maptype=terrain&format=png32&sensor=true”

enter image description here

关于r - 为 GoogleMap 绘图添加透明度(loa 包),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27701853/

相关文章:

r - 如何在 R 中 ggiraph 包的工具提示 cloude 中添加更多信息?

r - View() 键盘快捷键

java - 如何在没有窗口管理器的情况下在 SWT 中制作透明外壳?

r - 使用 ggplotly(ggplot2 with plotly)时,你能去掉注释中的跟踪标签吗?

r - 为现有数据表 R 的每一行创建一个新数据表,同时避免内存向量问题

r - 从由两个饼图组成的图中消除死区

plot - 在 Windows 的 Octave 中打印绘图时有轴但没有线条

matlab - 使用 Matlab/Octave 绘制字符模式(shell)图?

android - ImageView 中的透明位图

具有透明度的图像上的 jQuery 悬停过渡