ggplot(tdm, aes(x = Var2, y = Var1, fill = factor(value))) +
labs(x = "Cost", y = "Benefit", fill = "Value", title="10 nodes, den=0.7") +
geom_raster() +
scale_fill_manual("Legend", limits = 0:9, breaks = breaks, values = col, labels=labels) +
theme(plot.background = element_rect(fill = "grey90"),
legend.background = element_rect(fill = "grey90")) +
scale_x_continuous(expand = c(0, 0)) +
scale_y_continuous(expand = c(0, 0))
ggsave("experimental results/10-0.7.pdf")
--
--
You received this message because you are subscribed to the ggplot2 mailing list.
Please provide a reproducible example: https://github.com/hadley/devtools/wiki/Reproducibility
To post: email ggp...@googlegroups.com
To unsubscribe: email ggplot2+u...@googlegroups.com
More options: http://groups.google.com/group/ggplot2
---
You received this message because you are subscribed to the Google Groups "ggplot2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ggplot2+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--


thanks for the reply, here's the screenshot attached
I don't know why this happens, if the problem is my raster_geom()
where should I look for some advices?