psteinb / covid19-curve-your-city

Extrapolation der COVID19 Fallzahlen
BSD 3-Clause "New" or "Revised" License
9 stars 5 forks source link

Fehler: Unknown graphics device '' #29

Open gerbsen opened 4 years ago

gerbsen commented 4 years ago

I get this error if I run this command with the data from https://github.com/psteinb/covid19-curve-your-city/pull/28

Rscript exponential.R -i data/SMS/de_sachsen_sms.csv --deLabel Sachsen --enLabel "Saxony, Germany" -T "" --output "sachsen_plus2_dead" -c deceased

42  41 117.801075964 205.698715293 62.541687037 2020-04-12
[1] "tomorrow, day 35"
  day   ydata      upr      lwr       date
1  35 41.8148 70.09736 22.91919 2020-04-06
[1] "1 week from now, day 41"
  day    ydata      upr      lwr       date
1  41 117.8011 205.6987 62.54169 2020-04-12
Warnmeldung:
Ignoring unknown parameters: linewidth
[1] "plotting linear and log scale"
Fehler: Unknown graphics device ''
Backtrace:
    █
 1. └─ggplot2::ggsave(output_name, mycanvas, width = 12, height = 6.5)
 2.   └─ggplot2:::plot_dev(device, filename, dpi = dpi)
Zusätzlich: Warnmeldungen:
1: In self$trans$transform(x) : NaNs wurden erzeugt
2: Transformation introduced infinite values in continuous y-axis
3: In self$trans$transform(x) : NaNs wurden erzeugt
4: Transformation introduced infinite values in continuous y-axis
5: In self$trans$transform(x) : NaNs wurden erzeugt
6: Transformation introduced infinite values in continuous y-axis
7: In self$trans$transform(x) : NaNs wurden erzeugt
8: Transformation introduced infinite values in continuous y-axis
9: Transformation introduced infinite values in continuous y-axis
10: Removed 11 row(s) containing missing values (geom_path).
Ausführung angehalten
psteinb commented 4 years ago

Please add the file suffix to --output, such as

Rscript exponential.R -i data/SMS/de_sachsen_sms.csv \ 
                                   --deLabel Sachsen \
                                   --enLabel "Saxony, Germany" -T "" \
                                   --output "sachsen_plus2_dead.png" \ 
                                   -c deceased

See, I appended the .png suffix to the output file name.