How to add tickmarks to PlotProb fundtion in MSwM package?

by Anne Louise Kallehave Høegh   Last Updated July 12, 2019 10:19 AM - source

I would like to add more tick marks to my probability plot. How do I do that? minor.tick() and axis() does not seem to work with the PlotProb() function.

I would like to add additional tick marks to plotProb(msBusSv, which = 2), in order for me to be able to read the time of regime switch.

My code is: library(MSwM)

EU_period <- read.table(file.choose(),header = T) EU_period x <- cbind(EU_period$Period) yBusSv <- cbind(EU_period$X.34._BusSv) OLSBusSv <- lm(yBusSv~x) msBusSv <- msmFit(OLSBusSv, k=2, sw=rep(TRUE,3)) summary(msBusSv) plotProb(msBusSv, which = 1) plotProb(msBusSv, which = 2)

enter image description here

My data:

Period BusSV 1 0 2 0 3 0 4 0 5 0 6 0 7 1 8 0 9 2 10 0 11 0 12 0 13 4 14 8 15 9 16 3 17 4 18 4 19 6 20 7 21 10 22 5 23 7 24 6 25 3 26 8 27 10 28 6 29 9 30 10 31 12 32 13 33 11 34 14 35 11 36 12 37 8 38 13 39 16 40 12 41 11 42 15 43 12 44 9 45 13 46 14 47 21 48 18 49 21 50 32 51 29 52 30 53 29 54 30 55 27 56 18 57 23 58 26 59 24 60 19 61 18 62 21 63 20 64 27 65 21 66 15 67 24 68 12 69 11 70 14 71 17 72 21 73 13 74 12 75 15 76 21 77 15 78 15 79 20 80 17 81 19 82 9 83 14 84 7 85 15 86 19 87 21 88 13 89 8 90 11 91 19 92 14 93 13 94 15 95 19 96 30 97 8 98 15 99 21 100 25 101 18 102 16 103 19 104 24 105 23 106 21 107 24 108 32 109 21 110 23 111 38 112 33 113 28 114 22 115 24 116 24 117 36 118 26 119 35 120 38 121 28 122 32 123 23 124 33 125 36 126 42 127 34 128 30 129 30 130 42 131 28 132 52 133 32 134 32 135 47 136 47 137 54 138 33 139 56 140 59 141 59 142 37 143 32 144 49 145 32 146 35 147 47 148 35 149 39 150 37 151 38 152 24 153 22 154 33 155 17 156 17 157 13 158 8 159 5 160 11 161 12 162 20 163 21 164 14 165 20 166 16 167 16 168 36 169 13 170 15 171 21 172 17 173 14 174 30 175 22 176 20 177 24 178 15 179 19 180 28 181 20 182 15 183 17 184 19 185 24 186 13 187 25 188 20 189 19 190 19 191 16 192 24 193 22 194 17 195 25 196 13 197 17 198 28 199 19 200 16 201 22 202 13 203 24 204 17 205 11 206 14 207 19 208 15 209 30 210 16 211 23 212 16 213 23 214 21 215 17 216 21 217 22 218 22 219 21 220 20 221 15 222 21 223 29 224 14 225 23 226 31 227 24 228 30 229 20 230 26 231 27 232 17 233 27 234 34 235 35 236 19 237 14 238 17 239 19 240 24 241 12 242 27 243 23 244 27 245 28 246 22 247 21 248 21 249 16 250 27 251 26 252 42 253 14 254 14 255 25 256 24 257 28 258 27 259 32 260 24 261 20 262 19 263 24 264 40 265 17 266 22 267 31 268 16 269 28 270 19 271 22 272 19 273 20 274 26 275 16 276 23 277 24 278 14



Related Questions



Visualization vignettes

Updated May 25, 2018 16:19 PM

What is the best way to present rank survey data?

Updated November 29, 2018 08:19 AM


Visualization Question

Updated May 13, 2015 17:08 PM