Save a ggplot object to a PNG figure
write_fig(
plt,
filename = "myfigure",
y_reverse = FALSE,
x_reverse = FALSE,
width = 7,
height = 5.5,
dpi = 200
)
a ggplot object, the object to be saved.
a string, the file names of the saved figure, default as `myfigure`.
a logical value, whether reverse the graph by y-axis, default as FALSE
.
a logical value, whether reverse the graph by x-axis, default as FALSE
.
a positive real, the width of the saved figure, default as 7.
a positive real, the height of the saved figure, default as 5.5.
a positive integer, the resolution of the figure, default as 200.