Skip to content

Problems with function gplot from rasterVis

3 messages · Manuel Spínola, Oscar Perpiñan

2 days later
#
Manuel Sp?nola <mspinola10 at gmail.com> writes:
Hi Manuel,

Try this:

gplot(r) + geom_tile(aes(fill = value)) + geom_point(aes(X,Y), data=loc)

The arguments of geom_point are mapping and then data, but you were
using them in reverse order.

Best,

Oscar.