修訂 | 48d67f767c197006faa5ce03f7c538a6be1bf47d (tree) |
---|---|
時間 | 2024-03-01 01:40:29 |
作者 | Lorenzo Isella <lorenzo.isella@gmai...> |
Commiter | Lorenzo Isella |
Minor improvements to the plots and to the axis text.
@@ -12,7 +12,7 @@ | ||
12 | 12 | |
13 | 13 | number_col <- 8 ## how many columns in the panel plots |
14 | 14 | |
15 | -x_size <- 24 | |
15 | +x_size <- 32 | |
16 | 16 | |
17 | 17 | y_size <- 16 |
18 | 18 |
@@ -240,6 +240,7 @@ | ||
240 | 240 | ggtitle(title_name)+ |
241 | 241 | facet_wrap( ~symbol, ncol = number_col , scales = "free_y")+ |
242 | 242 | my_ggplot_theme2("right")+ |
243 | + scale_x_date(guide = guide_axis(n.dodge = 2))+ | |
243 | 244 | ylab(paste("Coin Price in ", currency, sep=""))+ |
244 | 245 | xlab(NULL) |
245 | 246 |
@@ -253,6 +254,7 @@ | ||
253 | 254 | aes(x = timestamp, y = Volume)) + |
254 | 255 | geom_line(linewidth=1)+ |
255 | 256 | ggtitle(title_name)+ |
257 | + scale_x_date(guide = guide_axis(n.dodge = 2))+ | |
256 | 258 | facet_wrap( ~symbol, ncol = number_col , scales = "free_y")+ |
257 | 259 | my_ggplot_theme2("right")+ |
258 | 260 | ylab(paste("Coin Volume in ", currency, sep=""))+ |
@@ -269,6 +271,7 @@ | ||
269 | 271 | geom_line(linewidth=1)+ |
270 | 272 | geom_hline(yintercept=1, color="red")+ |
271 | 273 | ggtitle(title_name)+ |
274 | + scale_x_date(guide = guide_axis(n.dodge = 2))+ | |
272 | 275 | facet_wrap( ~symbol, ncol = number_col , scales = "free_y")+ |
273 | 276 | my_ggplot_theme2("right")+ |
274 | 277 | ylab("Normalized Coin Price")+ |
@@ -285,7 +288,9 @@ | ||
285 | 288 | geom_line(linewidth=1)+ |
286 | 289 | geom_hline(yintercept=1, color="red")+ |
287 | 290 | ggtitle(title_name)+ |
291 | + ## scale_x_date(guide = guide_axis(n.dodge = 2))+ | |
288 | 292 | facet_wrap( ~symbol, ncol = number_col , scales = "free_y")+ |
293 | + scale_x_date(guide = guide_axis(n.dodge = 2))+ | |
289 | 294 | my_ggplot_theme2("right")+ |
290 | 295 | ylab("Normalized Coin Volume")+ |
291 | 296 | xlab(NULL) |
@@ -306,6 +311,7 @@ | ||
306 | 311 | geom_line(linewidth=1)+ |
307 | 312 | ggtitle(title_name)+ |
308 | 313 | facet_wrap( ~coin, ncol = number_col , scales = "free_y")+ |
314 | + scale_x_date(guide = guide_axis(n.dodge = 2))+ | |
309 | 315 | my_ggplot_theme2("right")+ |
310 | 316 | ylab("Chaikin Accumulator")+ |
311 | 317 | xlab(NULL) |
@@ -319,6 +325,7 @@ | ||
319 | 325 | aes(x = timestamp, y = value)) + |
320 | 326 | geom_line(linewidth=1)+ |
321 | 327 | ggtitle(title_name)+ |
328 | + scale_x_date(guide = guide_axis(n.dodge = 2))+ | |
322 | 329 | geom_hline(yintercept=0.25, col="red") + |
323 | 330 | geom_hline(yintercept=-0.25, col="blue") + |
324 | 331 | facet_wrap( ~coin, ncol = number_col , scales = "free_y")+ |
@@ -338,6 +345,7 @@ | ||
338 | 345 | aes(x = timestamp, y = value)) + |
339 | 346 | geom_line(linewidth=1)+ |
340 | 347 | ggtitle(title_name)+ |
348 | + scale_x_date(guide = guide_axis(n.dodge = 2))+ | |
341 | 349 | geom_hline(yintercept=50, col="red") + |
342 | 350 | geom_hline(yintercept=-50, col="blue") + |
343 | 351 | facet_wrap( ~coin, ncol = number_col , scales = "free_y")+ |
@@ -358,6 +366,7 @@ | ||
358 | 366 | ggtitle(title_name)+ |
359 | 367 | geom_hline(yintercept=80, col="red") + |
360 | 368 | geom_hline(yintercept=20, col="blue") + |
369 | + scale_x_date(guide = guide_axis(n.dodge = 2))+ | |
361 | 370 | facet_wrap( ~coin, ncol = number_col , scales = "free_y")+ |
362 | 371 | my_ggplot_theme2("right")+ |
363 | 372 | ylab("Money Flow Index")+ |
@@ -374,6 +383,7 @@ | ||
374 | 383 | aes(x = timestamp, y = value)) + |
375 | 384 | geom_line(linewidth=1)+ |
376 | 385 | ggtitle(title_name)+ |
386 | + scale_x_date(guide = guide_axis(n.dodge = 2))+ | |
377 | 387 | facet_wrap( ~coin, ncol = number_col , scales = "free_y")+ |
378 | 388 | my_ggplot_theme2("right")+ |
379 | 389 | ylab("On Balance Volume")+ |
@@ -393,6 +403,7 @@ | ||
393 | 403 | ) + |
394 | 404 | geom_line(linewidth=1)+ |
395 | 405 | ggtitle(title_name)+ |
406 | + scale_x_date(guide = guide_axis(n.dodge = 2))+ | |
396 | 407 | scale_color_manual(values=c("red", "black", "blue"))+ |
397 | 408 | facet_wrap( ~coin, ncol = number_col , scales = "free_y")+ |
398 | 409 | my_ggplot_theme2("right")+ |
@@ -410,6 +421,7 @@ | ||
410 | 421 | ggtitle(title_name)+ |
411 | 422 | geom_hline(yintercept=70, col="red") + |
412 | 423 | geom_hline(yintercept=30, col="blue") + |
424 | + scale_x_date(guide = guide_axis(n.dodge = 2))+ | |
413 | 425 | facet_wrap( ~coin, ncol = number_col , scales = "free_y")+ |
414 | 426 | my_ggplot_theme2("right")+ |
415 | 427 | ylab("Relative Strength Index")+ |
@@ -437,6 +449,7 @@ | ||
437 | 449 | scale_color_manual(values=c("red", "black", "blue"))+ |
438 | 450 | facet_wrap( ~coin, ncol = number_col , scales = "free_y")+ |
439 | 451 | my_ggplot_theme2("right")+ |
452 | + scale_x_date(guide = guide_axis(n.dodge = 2))+ | |
440 | 453 | ylab("Aroon Indicator")+ |
441 | 454 | xlab(NULL) |
442 | 455 |
@@ -454,6 +467,7 @@ | ||
454 | 467 | ) + |
455 | 468 | geom_line(linewidth=1)+ |
456 | 469 | ggtitle(title_name)+ |
470 | + scale_x_date(guide = guide_axis(n.dodge = 2))+ | |
457 | 471 | scale_color_manual(values=c("red", "blue"))+ |
458 | 472 | facet_wrap( ~coin, ncol = number_col , scales = "free_y")+ |
459 | 473 | my_ggplot_theme2("right")+ |