How can I add georeferenced image made in R to spotfire map

I would like to add an image which was created using the SPATSTAT package in r to a map. I know how to create the contoured lines in Spotfire, however the output is hard to read compared to the smoothed image created in r.  I've attached an example that I would like to recreate in a Spotfire map. Below is the code used to produce the output. 

Thanks

library(spatstat)
library(RColorBrewer)
library(sp)
library(rgdal)
library(rgeos)
library(maptools)
library(maps)

setwd()

#Create custom color ramp
ColorRamp <- colorRampPalette(c("blue","green","yellow","red"), bias=1)
##"blue","green","yellow","red"

ColorRamp=ColorRamp(400)                         

##Set Transparency of points
color= rgb(0,0,0, alpha=.1)

#Force numbers to numeric
options(scipen=10)

#Read Text File
Example <- read.csv("ContourPlot_V2.2.csv",header = TRUE)

#Creat Spatial Points Dataframe
coordinates(Example) = ~longitude+latitude

Amountppp <- as(Example["z"], "ppp")

#Planar point pattern
as(as(Amountppp, "SpatialPoints"), "ppp")

# Create an owin object from the county outline(s)
WestTx= convexhull(Amountppp)
summary(WestTx)
str(WestTx)

Amountppp <- ppp(x=Amountppp$x, y=Amountppp$y, marks=Amountppp$marks, window=WestTx)

#Add State Outline
map('state', regions = c('Texas','Oklahoma'),add=F)

# Plot a smoothed surface using the weights
Image= Smooth.ppp(Amountppp,sigma=.2, col= ColorRamp)
plot(Image,main= " ",col=ColorRamp, add=T, ribbon=F)

#Contour Density
con=contour(Smooth(Amountppp,.2), axes=T,add=T)

#Add County Line
map('county', regions= c('Oklahoma', 'Texas'), add=T, col= color)

 

Attachments

AttachmentSize
PDF icon smoothed_image-spatstat.pdf36.8 KB

(1) Answer

Login