ArgoCanada / argoFloats

Tools for analyzing collections of oceanographic Argo floats
https://argocanada.github.io/argoFloats/index.html
17 stars 7 forks source link

plot(argos, which="summary") won't plot #534

Closed j-harbin closed 2 years ago

j-harbin commented 2 years ago

The following code produces this error. I've tried Xing R studio, and making my margins bigger, but nothing seems to work. If I specify a item in summaryControl, it does then work (obviously because the margins are then being changed). @dankelley , I'm wondering if you're able to simply plot the defaults of the summary plot without receiving this error?

library(argoFloats)
ai <- getIndex()
index1 <- subset(ai, ID="2900103")
#> Kept 171 cycles (0.00672%)
profiles <- getProfiles(index1)
argos <- readProfiles(profiles)
#> Warning in readProfiles(profiles): Of 171 profiles read, 59 have >10% of pressure values with QC flag of 4, signalling bad data.
#>     The indices of the bad profiles are as follows.
#>     109 110 111 112 113 114 115 116 119 120 121 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171
#> Warning in readProfiles(profiles): Of 171 profiles read, 63 have >10% of salinity values with QC flag of 4, signalling bad data.
#>     The indices of the bad profiles are as follows.
#>     109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171
#> Warning in readProfiles(profiles): Of 171 profiles read, 63 have >10% of temperature values with QC flag of 4, signalling bad data.
#>     The indices of the bad profiles are as follows.
#>     109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171
plot(argos, which="summary")
#> Error in plot.new(): figure margins too large

Created on 2021-11-15 by the reprex package (v2.0.0)

j-harbin commented 2 years ago

Fixed in commit bb428a5fe5efde448761dbbdd108f0e4e5041918 of develop. Thanks for the help Dan.