I wrote this code in R, in order to plot a density function kernel smoothing 
and then save the plot as a "eps" file:



library(ks) 
library(rgl)
kern <-read.table(file.choose(),sep=",")
hat <-kde(kern)
plot(hat,drawpoints=TRUE,xlab ="x",ylab="y",zlab="z") 
rgl.postscript("plot1.eps","eps",drawText=TRUE)

The problem is that when I insert that eps file in Latex, the colors of the 
plot are not the same as the plot which is generated in R and it just shows the 
plot in one color (yellow) instead of a rage of colors (yellow, orange, red...) 
which shows different densities...
        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to