{"action":"created","issue":{"url":"https://api.github.com/repos/dankelley/oce/issues/1009","repository_url":"https://api.github.com/repos/dankelley/oce","labels_url":"https://api.github.com/repos/dankelley/oce/issues/1009/labels{/name}","comments_url":"https://api.github.com/repos/dankelley/oce/issues/1009/comments","events_url":"https://api.github.com/repos/dankelley/oce/issues/1009/events","html_url":"https://github.com/dankelley/oce/issues/1009","id":163313436,"number":1009,"title":"plotProfile ignores xlim argument, for \"non-standard\" fields","user":{"login":"richardsc","id":233584,"avatar_url":"https://avatars.githubusercontent.com/u/233584?v=3","gravatar_id":"","url":"https://api.github.com/users/richardsc","html_url":"https://github.com/richardsc","followers_url":"https://api.github.com/users/richardsc/followers","following_url":"https://api.github.com/users/richardsc/following{/other_user}","gists_url":"https://api.github.com/users/richardsc/gists{/gist_id}","starred_url":"https://api.github.com/users/richardsc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richardsc/subscriptions","organizations_url":"https://api.github.com/users/richardsc/orgs","repos_url":"https://api.github.com/users/richardsc/repos","events_url":"https://api.github.com/users/richardsc/events{/privacy}","received_events_url":"https://api.github.com/users/richardsc/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dankelley/oce/labels/ctd","name":"ctd","color":"5319e7"},{"url":"https://api.github.com/repos/dankelley/oce/labels/graphics","name":"graphics","color":"ededed"}],"state":"open","locked":false,"assignee":{"login":"dankelley","id":99469,"avatar_url":"https://avatars.githubusercontent.com/u/99469?v=3","gravatar_id":"","url":"https://api.github.com/users/dankelley","html_url":"https://github.com/dankelley","followers_url":"https://api.github.com/users/dankelley/followers","following_url":"https://api.github.com/users/dankelley/following{/other_user}","gists_url":"https://api.github.com/users/dankelley/gists{/gist_id}","starred_url":"https://api.github.com/users/dankelley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dankelley/subscriptions","organizations_url":"https://api.github.com/users/dankelley/orgs","repos_url":"https://api.github.com/users/dankelley/repos","events_url":"https://api.github.com/users/dankelley/events{/privacy}","received_events_url":"https://api.github.com/users/dankelley/received_events","type":"User","site_admin":false},"assignees":[{"login":"dankelley","id":99469,"avatar_url":"https://avatars.githubusercontent.com/u/99469?v=3","gravatar_id":"","url":"https://api.github.com/users/dankelley","html_url":"https://github.com/dankelley","followers_url":"https://api.github.com/users/dankelley/followers","following_url":"https://api.github.com/users/dankelley/following{/other_user}","gists_url":"https://api.github.com/users/dankelley/gists{/gist_id}","starred_url":"https://api.github.com/users/dankelley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dankelley/subscriptions","organizations_url":"https://api.github.com/users/dankelley/orgs","repos_url":"https://api.github.com/users/dankelley/repos","events_url":"https://api.github.com/users/dankelley/events{/privacy}","received_events_url":"https://api.github.com/users/dankelley/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2016-07-01T03:37:36Z","updated_at":"2016-07-01T10:46:58Z","closed_at":null,"body":"There are lots of individual `lim` arguments, e.g. `Slim`, `Tlim`, `plim` etc, however if you want to control the axis limits for a \"non-standard\" field in a ctd object there is no way to do it. Example:\r\n```r\r\nlibrary(oce)\r\ndata(ctd)\r\nctd <- oceSetData(ctd, 'junk', rnorm(ctd[['pressure']]), list(unit=expression(JNK), scale=''))\r\nplotProfile(ctd, xtype='junk', xlim=c(-5, 5))\r\n```\r\n<img width=\"812\" alt=\"screen shot 2016-06-30 at 23 36 53\" src=\"https://cloud.githubusercontent.com/assets/233584/16511175/8e51d468-3f1b-11e6-9771-6cd50784ae02.png\">\r\n"},"comment":{"url":"https://api.github.com/repos/dankelley/oce/issues/comments/229917192","html_url":"https://github.com/dankelley/oce/issues/1009#issuecomment-229917192","issue_url":"https://api.github.com/repos/dankelley/oce/issues/1009","id":229917192,"user":{"login":"dankelley","id":99469,"avatar_url":"https://avatars.githubusercontent.com/u/99469?v=3","gravatar_id":"","url":"https://api.github.com/users/dankelley","html_url":"https://github.com/dankelley","followers_url":"https://api.github.com/users/dankelley/followers","following_url":"https://api.github.com/users/dankelley/following{/other_user}","gists_url":"https://api.github.com/users/dankelley/gists{/gist_id}","starred_url":"https://api.github.com/users/dankelley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dankelley/subscriptions","organizations_url":"https://api.github.com/users/dankelley/orgs","repos_url":"https://api.github.com/users/dankelley/repos","events_url":"https://api.github.com/users/dankelley/events{/privacy}","received_events_url":"https://api.github.com/users/dankelley/received_events","type":"User","site_admin":false},"created_at":"2016-07-01T10:46:58Z","updated_at":"2016-07-01T10:46:58Z","body":"I think this is fixed in `develop` commit 558ba7d14dedaa692e5a5d1d815332f19387e763\r\n\r\nI made a test suite for it, with results as below ... I didn't put purple labels telling what to expect but I think you can tell by inspection whether this worked.\r\n```R\r\nlibrary(oce)\r\ndata(ctd)\r\nctd <- oceSetData(ctd, 'junk', rnorm(ctd[['pressure']]), list(unit=expression(JNK), scale=''))\r\nif (!interactive()) png(\"1009a.png\")\r\npar(mfrow=c(2,2))\r\nplotProfile(ctd, xtype='junk')\r\nplotProfile(ctd, xtype='junk', xlim=c(-5, 5))\r\nplotProfile(ctd, xtype='temperature')\r\nplotProfile(ctd, xtype='temperature', Tlim=c(0, 30))\r\nif (!interactive()) dev.off()\r\n```\r\n![1009a](https://cloud.githubusercontent.com/assets/99469/16519519/ea9e1b84-3f5f-11e6-8c32-ddd550eb81cd.png)\r\n"}}
{"actor":{"display_login":"dankelley"}}