Function plots single sensor form myClim data into PNG file with image() R base function. This was designed for fast, and easy data visualization especially focusing on missing values visualization and general data picture.
mc_plot_image(
data,
filename,
title = "",
localities = NULL,
sensors = NULL,
height = 1900,
left_margin = 12,
use_utc = TRUE
)
myClim object see myClim-package
output file name (file path)
of plot; default is empty
names of localities; if NULL then all (default NULL)
names of sensors; if NULL then all (default NULL) see names(mc_data_sensors)
of image; default = 1900
width of space for sensor_labels; default = 12
if FALSE, then the time shift from tz_offset
metadata is used to correct
(shift) the output time-series (default TRUE)
In the Agg-format myClim object use_utc = FALSE
is allowed only for steps shorter than one day. In myClim
the day nd longer time steps are defined by the midnight, but this represent whole day, week, month, year...
shifting daily, weekly, monthly... data (shift midnight) does not make sense in our opinion.
But when user need more flexibility, then myClim Raw-format
can be used, In Raw-format use_utc
is not limited, user can shift an data without the restrictions.
See myClim-package
PNG file created as specified in output file name
Be careful with bigger data. Can take some time.
tmp_dir <- tempdir()
tmp_file <- tempfile(tmpdir = tmp_dir)
mc_plot_image(mc_data_example_clean, tmp_file, "T1 sensor", sensors="TMS_T1")
#> agg_png
#> 2
file.remove(tmp_file)
#> [1] TRUE