plot_TH1.Rd
The plot_TH1 function allows the user to build a column/line graph with climatic parameters of temperature (maximum, minimum and average) and relative humidity (UR) or precipitation. This chart is widely used in scientific work in agrarian science
plot_TH1(
tempo,
Tmed,
Tmax,
Tmin,
UR,
xlab = "Time",
yname1 = expression("Humidity (%)"),
yname2 = expression("Temperature ("^o * "C)"),
legend.T = "Temperature",
legend.H = "Humidity",
legend.tmed = "Tmed",
legend.tmin = "Tmin",
legend.tmax = "Tmax",
colormax = "red",
colormin = "blue",
colormean = "darkgreen",
fillarea = "darkblue",
facet.fill = "#FF9933",
panel.grid = FALSE,
x = "days",
breaks = "1 months",
textsize = 12,
legendsize = 12,
titlesize = 12,
linesize = 1,
date_format = "%m-%Y",
angle = 0,
legend.position = c(0.1, 0.3)
)
Vector with times
Vector with mean temperature
Vector with maximum temperature
Vector with minimum temperature
Vector with relative humidity or precipitation
x axis name
y axis name
Secondary y-axis name
faceted title legend 1
faceted title legend 2
Legend mean temperature
Legend minimum temperature
Legend maximum temperature
Maximum line color (default is "red")
Minimum line color (default is "blue")
Midline color (default is "darkgreen")
area fill color (default is "darkblue")
faceted title fill color (default is #FF9933)
remove grid line (default is FALSE)
x scale type (days or data, default is "days")
Range for x scale when x = "date" (default is 1 months)
Axis text size
Legend text size
Axis title size
Line size
Date format for x="data"
x-axis scale text rotation
Legend position
Returns row and column graphs for graphical representation of air temperature and relative humidity. Graph normally used in scientific articles