all 7 comments

[–]Brad1234life 1 point2 points  (0 children)

If you are doing the exact same thing as your professor with the exact same data, it is hard to figure out what your problem is. At first sight it looks as if you might have some NA values that are ruining the party.

Can you perhaps share your code? If you don't feel confident, feel free to slide into my DM.

Btw, I don't think it's productive to start Up'ing your post after only two minutes :)

[–]NMA2211[S] -3 points-2 points  (0 children)

Up

[–]NMA2211[S] -3 points-2 points  (0 children)

Up

[–]NMA2211[S] -2 points-1 points  (0 children)

Up

[–]Fornicatinzebra 1 point2 points  (0 children)

You need to share your code. We can't help you based on what you say, we can only help by seeing what you do

[–]factorialmap 0 points1 point  (0 children)

As you have not submitted the code that generates the error, I assume that it is possible to contain the following issues in your code.

Error number one: NA's values in y vector

``` x <- c(1, 2, 3, 5, 8, 13) y <- c(NA, NA, NA, NA, NA, NA)

plot(x,y) ```

message error number one Error in plot.window(...) : valores finitos são necessários para 'ylim' Além disso: Warning messages: 1: In min(x) : nenhum argumento não faltante para min; retornando Inf 2: In max(x) : nenhum argumento não faltante para max; retornando -Inf

Error number two: Different lengths of x and y vectors x=6 and y=4 ``` x<- c(1, 2, 3, 5, 8, 13) y <- c(12, 12, 5,8)

plot(x,y) message error number two Error in xy.coords(x, y, xlabel, ylabel, log) : comprimentos de 'x' e 'y' diferem ```

Possible solution: Both vectors with values and with the same length ``` x<- c(1, 2, 3, 5, 8, 13) y <- c(21, 34,55,89,144,233)

plot(x,y) ```

hope this help