R heatmap-image from R-x and y from java