I'm generating some graphs in markdown file, but the graph does not look right in the html file.
In RStudio, it works well, and looks like this:
But in the markdown html file, the legend box on the right side is cut off:
I tried adjusting fig.width
, fig.align
, fig.show='asis'
, fig.crop
. They either didn't make any change, or just made the figure as a whole look narrower with the legend box still being incomplete.
Is there any way to make it look normal in markdown html file?