Rename coordmap usr and bounds to domain and range

This commit is contained in:
Winston Chang
2015-04-07 12:35:24 -05:00
parent 3f8cc71814
commit 667bc95d02
3 changed files with 37 additions and 36 deletions

View File

@@ -120,14 +120,15 @@ getPrevPlotCoordmap <- function(width, height) {
}
list(
usr = list(
# Bounds of the plot area, in data space
domain = list(
left = usrCoords[1],
right = usrCoords[2],
bottom = usrCoords[3],
top = usrCoords[4]
),
# The bounds of the plot area, in DOM pixels
bounds = list(
range = list(
left = grconvertX(usrBounds[1], 'user', 'nfc') * width - 1,
right = grconvertX(usrBounds[2], 'user', 'nfc') * width - 1,
bottom = (1-grconvertY(usrBounds[3], 'user', 'nfc')) * height - 1,