{"action":"created","comment":{"url":"https://api.github.com/repos/USGS-R/gsplot/pulls/comments/85382392","pull_request_review_id":6103048,"id":85382392,"diff_hunk":"@@ -76,9 +77,25 @@ axis.gsplot <- function(object, ..., n.minor=0, tcl.minor=0.15, reverse=NULL) {\n   \n   for(side in sides){\n     # append the side and give it defaults if it doesn't exist\n+    \n     object <- modify_side(object, args = list(), side=side) \n+    which.axis <- which(names(object[[as.side_name(side)]])== 'axis')\n+    if (append){\n+      last.axis <- tail(which.axis, 1) # get the last one\n+      object[[as.side_name(side)]] <- append(object[[as.side_name(side)]], \n+                                             list('axis' = set_args('axis', side=side, package='graphics')), \n+                                             after = last.axis)\n+      object[[as.side_name(side)]][[last.axis+1]] <- append_replace(object[[as.side_name(side)]][[last.axis+1]], user_args[[fun.name]])\n+    } else {\n+      # remove\n+      if (length(which.axis) > 1){\n+        # remove all axis functions other than the first one\n+        object[[as.side_name(side)]] <- object[[as.side_name(side)]][-which.axis[!which.axis %in% head(which.axis, 1)]]  ","path":"R/axis.R","position":27,"original_position":27,"commit_id":"dcea59f2a6ed47fd0563b682a6dad52a83530c03","original_commit_id":"800cb0533b69cce0d217d80caf3e74ade1a37231","user":{"login":"jread-usgs","id":2349007,"avatar_url":"https://avatars.githubusercontent.com/u/2349007?v=3","gravatar_id":"","url":"https://api.github.com/users/jread-usgs","html_url":"https://github.com/jread-usgs","followers_url":"https://api.github.com/users/jread-usgs/followers","following_url":"https://api.github.com/users/jread-usgs/following{/other_user}","gists_url":"https://api.github.com/users/jread-usgs/gists{/gist_id}","starred_url":"https://api.github.com/users/jread-usgs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jread-usgs/subscriptions","organizations_url":"https://api.github.com/users/jread-usgs/orgs","repos_url":"https://api.github.com/users/jread-usgs/repos","events_url":"https://api.github.com/users/jread-usgs/events{/privacy}","received_events_url":"https://api.github.com/users/jread-usgs/received_events","type":"User","site_admin":false},"body":"@ldecicco-USGS and @jiwalker-usgs do you have thoughts on this?","created_at":"2016-10-27T17:03:02Z","updated_at":"2016-10-27T17:03:03Z","html_url":"https://github.com/USGS-R/gsplot/pull/410#discussion_r85382392","pull_request_url":"https://api.github.com/repos/USGS-R/gsplot/pulls/410","_links":{"self":{"href":"https://api.github.com/repos/USGS-R/gsplot/pulls/comments/85382392"},"html":{"href":"https://github.com/USGS-R/gsplot/pull/410#discussion_r85382392"},"pull_request":{"href":"https://api.github.com/repos/USGS-R/gsplot/pulls/410"}}},"pull_request":{"url":"https://api.github.com/repos/USGS-R/gsplot/pulls/410","id":90728063,"html_url":"https://github.com/USGS-R/gsplot/pull/410","diff_url":"https://github.com/USGS-R/gsplot/pull/410.diff","patch_url":"https://github.com/USGS-R/gsplot/pull/410.patch","issue_url":"https://api.github.com/repos/USGS-R/gsplot/issues/410","number":410,"state":"open","locked":false,"title":"support for several axis calls on same side","user":{"login":"jread-usgs","id":2349007,"avatar_url":"https://avatars.githubusercontent.com/u/2349007?v=3","gravatar_id":"","url":"https://api.github.com/users/jread-usgs","html_url":"https://github.com/jread-usgs","followers_url":"https://api.github.com/users/jread-usgs/followers","following_url":"https://api.github.com/users/jread-usgs/following{/other_user}","gists_url":"https://api.github.com/users/jread-usgs/gists{/gist_id}","starred_url":"https://api.github.com/users/jread-usgs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jread-usgs/subscriptions","organizations_url":"https://api.github.com/users/jread-usgs/orgs","repos_url":"https://api.github.com/users/jread-usgs/repos","events_url":"https://api.github.com/users/jread-usgs/events{/privacy}","received_events_url":"https://api.github.com/users/jread-usgs/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-10-25T02:24:53Z","updated_at":"2016-10-27T17:03:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a1263b3e97578654b66e3aa870b5efef098998ff","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/USGS-R/gsplot/pulls/410/commits","review_comments_url":"https://api.github.com/repos/USGS-R/gsplot/pulls/410/comments","review_comment_url":"https://api.github.com/repos/USGS-R/gsplot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/USGS-R/gsplot/issues/410/comments","statuses_url":"https://api.github.com/repos/USGS-R/gsplot/statuses/dcea59f2a6ed47fd0563b682a6dad52a83530c03","head":{"label":"jread-usgs:master","ref":"master","sha":"dcea59f2a6ed47fd0563b682a6dad52a83530c03","user":{"login":"jread-usgs","id":2349007,"avatar_url":"https://avatars.githubusercontent.com/u/2349007?v=3","gravatar_id":"","url":"https://api.github.com/users/jread-usgs","html_url":"https://github.com/jread-usgs","followers_url":"https://api.github.com/users/jread-usgs/followers","following_url":"https://api.github.com/users/jread-usgs/following{/other_user}","gists_url":"https://api.github.com/users/jread-usgs/gists{/gist_id}","starred_url":"https://api.github.com/users/jread-usgs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jread-usgs/subscriptions","organizations_url":"https://api.github.com/users/jread-usgs/orgs","repos_url":"https://api.github.com/users/jread-usgs/repos","events_url":"https://api.github.com/users/jread-usgs/events{/privacy}","received_events_url":"https://api.github.com/users/jread-usgs/received_events","type":"User","site_admin":false},"repo":{"id":37484990,"name":"gsplot","full_name":"jread-usgs/gsplot","owner":{"login":"jread-usgs","id":2349007,"avatar_url":"https://avatars.githubusercontent.com/u/2349007?v=3","gravatar_id":"","url":"https://api.github.com/users/jread-usgs","html_url":"https://github.com/jread-usgs","followers_url":"https://api.github.com/users/jread-usgs/followers","following_url":"https://api.github.com/users/jread-usgs/following{/other_user}","gists_url":"https://api.github.com/users/jread-usgs/gists{/gist_id}","starred_url":"https://api.github.com/users/jread-usgs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jread-usgs/subscriptions","organizations_url":"https://api.github.com/users/jread-usgs/orgs","repos_url":"https://api.github.com/users/jread-usgs/repos","events_url":"https://api.github.com/users/jread-usgs/events{/privacy}","received_events_url":"https://api.github.com/users/jread-usgs/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jread-usgs/gsplot","description":"plotting foundation for timeseries reporting","fork":true,"url":"https://api.github.com/repos/jread-usgs/gsplot","forks_url":"https://api.github.com/repos/jread-usgs/gsplot/forks","keys_url":"https://api.github.com/repos/jread-usgs/gsplot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jread-usgs/gsplot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jread-usgs/gsplot/teams","hooks_url":"https://api.github.com/repos/jread-usgs/gsplot/hooks","issue_events_url":"https://api.github.com/repos/jread-usgs/gsplot/issues/events{/number}","events_url":"https://api.github.com/repos/jread-usgs/gsplot/events","assignees_url":"https://api.github.com/repos/jread-usgs/gsplot/assignees{/user}","branches_url":"https://api.github.com/repos/jread-usgs/gsplot/branches{/branch}","tags_url":"https://api.github.com/repos/jread-usgs/gsplot/tags","blobs_url":"https://api.github.com/repos/jread-usgs/gsplot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jread-usgs/gsplot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jread-usgs/gsplot/git/refs{/sha}","trees_url":"https://api.github.com/repos/jread-usgs/gsplot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jread-usgs/gsplot/statuses/{sha}","languages_url":"https://api.github.com/repos/jread-usgs/gsplot/languages","stargazers_url":"https://api.github.com/repos/jread-usgs/gsplot/stargazers","contributors_url":"https://api.github.com/repos/jread-usgs/gsplot/contributors","subscribers_url":"https://api.github.com/repos/jread-usgs/gsplot/subscribers","subscription_url":"https://api.github.com/repos/jread-usgs/gsplot/subscription","commits_url":"https://api.github.com/repos/jread-usgs/gsplot/commits{/sha}","git_commits_url":"https://api.github.com/repos/jread-usgs/gsplot/git/commits{/sha}","comments_url":"https://api.github.com/repos/jread-usgs/gsplot/comments{/number}","issue_comment_url":"https://api.github.com/repos/jread-usgs/gsplot/issues/comments{/number}","contents_url":"https://api.github.com/repos/jread-usgs/gsplot/contents/{+path}","compare_url":"https://api.github.com/repos/jread-usgs/gsplot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jread-usgs/gsplot/merges","archive_url":"https://api.github.com/repos/jread-usgs/gsplot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jread-usgs/gsplot/downloads","issues_url":"https://api.github.com/repos/jread-usgs/gsplot/issues{/number}","pulls_url":"https://api.github.com/repos/jread-usgs/gsplot/pulls{/number}","milestones_url":"https://api.github.com/repos/jread-usgs/gsplot/milestones{/number}","notifications_url":"https://api.github.com/repos/jread-usgs/gsplot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jread-usgs/gsplot/labels{/name}","releases_url":"https://api.github.com/repos/jread-usgs/gsplot/releases{/id}","deployments_url":"https://api.github.com/repos/jread-usgs/gsplot/deployments","created_at":"2015-06-15T18:59:47Z","updated_at":"2016-07-13T14:14:44Z","pushed_at":"2016-10-27T17:01:33Z","git_url":"git://github.com/jread-usgs/gsplot.git","ssh_url":"git@github.com:jread-usgs/gsplot.git","clone_url":"https://github.com/jread-usgs/gsplot.git","svn_url":"https://github.com/jread-usgs/gsplot","homepage":"","size":8882,"stargazers_count":0,"watchers_count":0,"language":"R","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"USGS-R:master","ref":"master","sha":"bc8f472e74f4a7173d1a4ca2c7d45a0e0c09e287","user":{"login":"USGS-R","id":3188813,"avatar_url":"https://avatars.githubusercontent.com/u/3188813?v=3","gravatar_id":"","url":"https://api.github.com/users/USGS-R","html_url":"https://github.com/USGS-R","followers_url":"https://api.github.com/users/USGS-R/followers","following_url":"https://api.github.com/users/USGS-R/following{/other_user}","gists_url":"https://api.github.com/users/USGS-R/gists{/gist_id}","starred_url":"https://api.github.com/users/USGS-R/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/USGS-R/subscriptions","organizations_url":"https://api.github.com/users/USGS-R/orgs","repos_url":"https://api.github.com/users/USGS-R/repos","events_url":"https://api.github.com/users/USGS-R/events{/privacy}","received_events_url":"https://api.github.com/users/USGS-R/received_events","type":"Organization","site_admin":false},"repo":{"id":37219882,"name":"gsplot","full_name":"USGS-R/gsplot","owner":{"login":"USGS-R","id":3188813,"avatar_url":"https://avatars.githubusercontent.com/u/3188813?v=3","gravatar_id":"","url":"https://api.github.com/users/USGS-R","html_url":"https://github.com/USGS-R","followers_url":"https://api.github.com/users/USGS-R/followers","following_url":"https://api.github.com/users/USGS-R/following{/other_user}","gists_url":"https://api.github.com/users/USGS-R/gists{/gist_id}","starred_url":"https://api.github.com/users/USGS-R/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/USGS-R/subscriptions","organizations_url":"https://api.github.com/users/USGS-R/orgs","repos_url":"https://api.github.com/users/USGS-R/repos","events_url":"https://api.github.com/users/USGS-R/events{/privacy}","received_events_url":"https://api.github.com/users/USGS-R/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/USGS-R/gsplot","description":"plotting foundation for timeseries reporting","fork":false,"url":"https://api.github.com/repos/USGS-R/gsplot","forks_url":"https://api.github.com/repos/USGS-R/gsplot/forks","keys_url":"https://api.github.com/repos/USGS-R/gsplot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/USGS-R/gsplot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/USGS-R/gsplot/teams","hooks_url":"https://api.github.com/repos/USGS-R/gsplot/hooks","issue_events_url":"https://api.github.com/repos/USGS-R/gsplot/issues/events{/number}","events_url":"https://api.github.com/repos/USGS-R/gsplot/events","assignees_url":"https://api.github.com/repos/USGS-R/gsplot/assignees{/user}","branches_url":"https://api.github.com/repos/USGS-R/gsplot/branches{/branch}","tags_url":"https://api.github.com/repos/USGS-R/gsplot/tags","blobs_url":"https://api.github.com/repos/USGS-R/gsplot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/USGS-R/gsplot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/USGS-R/gsplot/git/refs{/sha}","trees_url":"https://api.github.com/repos/USGS-R/gsplot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/USGS-R/gsplot/statuses/{sha}","languages_url":"https://api.github.com/repos/USGS-R/gsplot/languages","stargazers_url":"https://api.github.com/repos/USGS-R/gsplot/stargazers","contributors_url":"https://api.github.com/repos/USGS-R/gsplot/contributors","subscribers_url":"https://api.github.com/repos/USGS-R/gsplot/subscribers","subscription_url":"https://api.github.com/repos/USGS-R/gsplot/subscription","commits_url":"https://api.github.com/repos/USGS-R/gsplot/commits{/sha}","git_commits_url":"https://api.github.com/repos/USGS-R/gsplot/git/commits{/sha}","comments_url":"https://api.github.com/repos/USGS-R/gsplot/comments{/number}","issue_comment_url":"https://api.github.com/repos/USGS-R/gsplot/issues/comments{/number}","contents_url":"https://api.github.com/repos/USGS-R/gsplot/contents/{+path}","compare_url":"https://api.github.com/repos/USGS-R/gsplot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/USGS-R/gsplot/merges","archive_url":"https://api.github.com/repos/USGS-R/gsplot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/USGS-R/gsplot/downloads","issues_url":"https://api.github.com/repos/USGS-R/gsplot/issues{/number}","pulls_url":"https://api.github.com/repos/USGS-R/gsplot/pulls{/number}","milestones_url":"https://api.github.com/repos/USGS-R/gsplot/milestones{/number}","notifications_url":"https://api.github.com/repos/USGS-R/gsplot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/USGS-R/gsplot/labels{/name}","releases_url":"https://api.github.com/repos/USGS-R/gsplot/releases{/id}","deployments_url":"https://api.github.com/repos/USGS-R/gsplot/deployments","created_at":"2015-06-10T20:08:10Z","updated_at":"2016-07-11T14:24:44Z","pushed_at":"2016-10-27T17:01:34Z","git_url":"git://github.com/USGS-R/gsplot.git","ssh_url":"git@github.com:USGS-R/gsplot.git","clone_url":"https://github.com/USGS-R/gsplot.git","svn_url":"https://github.com/USGS-R/gsplot","homepage":"","size":8663,"stargazers_count":3,"watchers_count":3,"language":"R","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":47,"forks":12,"open_issues":47,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/USGS-R/gsplot/pulls/410"},"html":{"href":"https://github.com/USGS-R/gsplot/pull/410"},"issue":{"href":"https://api.github.com/repos/USGS-R/gsplot/issues/410"},"comments":{"href":"https://api.github.com/repos/USGS-R/gsplot/issues/410/comments"},"review_comments":{"href":"https://api.github.com/repos/USGS-R/gsplot/pulls/410/comments"},"review_comment":{"href":"https://api.github.com/repos/USGS-R/gsplot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/USGS-R/gsplot/pulls/410/commits"},"statuses":{"href":"https://api.github.com/repos/USGS-R/gsplot/statuses/dcea59f2a6ed47fd0563b682a6dad52a83530c03"}}}}
{"actor":{"display_login":"jread-usgs"}}