Ok, so, for my specific problem, that is, using ggplot2, I have solved it using ggsave
command:
library(ggplot2)
library(HH) # export.eps
qplot(rating, data=movies, weight=votes, geom="histogram") + theme_bw()
ggsave("result.pdf")
Therefore I do not need to pass trough the epstopdf
process and I also avoid using pdf command since I had the problem described on the answer/question posted by Dirk Eddelbuettel. The result.pdf file is nice and does not have the blue background. I was not aware about the ggsave
command.