I've generated a number of plots in R, but two specific ones are giving me fits. I have two point processes from R (.ppp objects) that I've generated plots from, but no matter what file type I save them as, Texmaker will not read them in properly. I've tried using .eps files and the epstopdf package, but would only get an empty plot (only the axes and no points). I've tried saving the plot as a .png, .jpeg, and .pdf using the instructions (minus rsweave) here Getting R plots into LaTeX?, but every time I try to compile, I get the error "no output PDF file produced!" because "reading image file failed". I'm at my wit's end here.
I'm using Texmaker along with miktex 2.9, if that helps.
Edit: Don't use dev.new() after using png() when saving images in R (shown in the link). That is what was causing the load error.