USGS-R / smwrGraphs

Moved to: https://code.usgs.gov/water/analysis-tools/smwrGraphs
https://code.usgs.gov/water/analysis-tools/smwrGraphs
Other
18 stars 16 forks source link

Add ability to place plot labels inside of plot margin #12

Closed tjmills closed 9 years ago

tjmills commented 9 years ago

When laying out multiple plots with a shared X axis using

setLayout(...,shared.x=TRUE) 

there is not sufficient space between plot margins for the title to be added. Plot titles (e.g. "A", "B", etc.) need to be able to be placed inside the margin as with

addExplanation(...,where="ul") 

Additionally, many people prefer for labels to be inside the margin regardless of the layout. Currently, I have to edit in another software package after I export.

dlorenz-usgs commented 9 years ago

The function addTitle now has an additonal; argument called position that will allow the use to place the title inside the graph. With the Justification argument, the title can be placed in the upper-left or upper-right corners or centered in the upper part of the graph.

On Thu, Jun 4, 2015 at 8:05 AM, T. Joe Mills notifications@github.com wrote:

When laying out multiple plots with a shared X axis using

setLayout(...,shared.x=TRUE)

there is not sufficient space between plot margins for the title to be added. Plot titles (e.g. "A", "B", etc.) need to be able to be placed inside the margin as with

addExplanation(...,where="ul")

Additionally, many people prefer for labels to be inside the margin regardless of the layout. Currently, I have to edit in another software package after I export.

— Reply to this email directly or view it on GitHub https://github.com/USGS-R/smwrGraphs/issues/12.

tjmills commented 9 years ago

Excellent! I will give it a test drive