good afternoon, please your help.
Im triying graph, two columns of one datasets that containing 4 columns. But, when i run RStudio to graph, appear the next mistake.
Error in plot.window(...) : need finite 'xlim' values
In addition: Warning messages:
1: In xy.coords(x, y, xlabel, ylabel, log) : NAs introduced by coercion
2: In min(x) : no non-missing arguments to min; returning Inf
3: In max(x) : no non-missing arguments to max; returning -Inf
The cod is very simple
x=DataSetsCorto$Epicentro
y=DataSetsCorto$Magnitud
plot(x,y)
and the datasets is this
Latitud Longitud Profundidad Magnitud Epicentro Distancia
-31.815 -69.789 165.5 3.6 Mina Los Pelambres 75
-30.254 -71.248 56.4 2.8 Andacollo 16
-37.546 -71.228 159.3 3.7 Antuco 46
-23.908 -67.261 254.2 3.5 Socaire 73
-38.800 -72.872 28.9 2.5 Temuco 25
-37.478 -74.437 23.3 3.3 Lebu 70
-21.518 -68.977 103.1 3.0 Quillagua 60
-33.655 -72.045 25.7 3.3 Navidad 39
-33.677 -72.021 27.1 3.2 Navidad 35
-21.617 -68.480 137.5 3.2 Ollagüe 50
-34.510 -72.357 19.4 2.5 Pichilemu 35
-45.572 -76.723 10.0 3.5 Melinka 30
-31.732 -71.749 22.6 2.8 Los Vilos 30
-24.145 -67.581 233.2 4.2 Socaire 69
-35.624 -72.934 15.0 2.9 Constitución 57
-38.634 -75.285 30.8 2.9 Tirúa 15