Graph: Climate chart of temperature and humidity (Model 2)
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) )
tempo
: Vector with timesTmed
: Vector with mean temperatureTmax
: Vector with maximum temperatureTmin
: Vector with minimum temperatureUR
: Vector with relative humidity or precipitationxlab
: x axis nameyname1
: y axis nameyname2
: Secondary y-axis namelegend.T
: faceted title legend 1legend.H
: faceted title legend 2legend.tmed
: Legend mean temperaturelegend.tmin
: Legend minimum temperaturelegend.tmax
: Legend maximum temperaturecolormax
: Maximum line color (default is "red")colormin
: Minimum line color (default is "blue")colormean
: Midline color (default is "darkgreen")fillarea
: area fill color (default is "darkblue")facet.fill
: faceted title fill color (default is #FF9933)panel.grid
: remove grid line (default is FALSE)x
: x scale type (days or data, default is "days")breaks
: Range for x scale when x = "date" (default is 1 months)textsize
: Axis text sizelegendsize
: Legend text sizetitlesize
: Axis title sizelinesize
: Line sizedate_format
: Date format for x="data"angle
: x-axis scale text rotationlegend.position
: Legend positionReturns row and column graphs for graphical representation of air temperature and relative humidity. Graph normally used in scientific articles
library(AgroR) data(weather) with(weather, plot_TH1(tempo, Tmed, Tmax, Tmin, UR))
radargraph , sk_graph , barplot_positive , corgraph , spider_graph , line_plot
Gabriel Danilo Shimizu, shimizu@uel.br
Leandro Simoes Azeredo Goncalves
Rodrigo Yudi Palhaci Marubayashi
Useful links