[R] error while creating a simple graph
ruipbarradas at sapo.pt
Tue Jun 20 16:18:31 CEST 2017
You don't need dev.new, but you need to tell R that the plot is finished
by calling dev.off after the plot command.
Hope this helps,
Em 20-06-2017 06:18, Yogesh Gupta escreveu:
> Dear All,
> I am learning R so it's a very simple problem but I do not understand while
> I am not able to generate a graph from two vectors.
> when I type this code, it generates a very nice graph.
>> title("Regreesion of mpg")
> But I am trying to create a graph from this code, it generates a pdf with
>> x <- c(1,3,6,9,12)
>> y <- c(1.5,2,7,8,15)
> [[alternative HTML version deleted]]
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help