• R/O
  • SSH

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

修訂48d67f767c197006faa5ce03f7c538a6be1bf47d (tree)
時間2024-03-01 01:40:29
作者Lorenzo Isella <lorenzo.isella@gmai...>
CommiterLorenzo Isella

Log Message

Minor improvements to the plots and to the axis text.

Change Summary

差異

diff -r 6ec285935d15 -r 48d67f767c19 R-codes/technical_analysis.R
--- a/R-codes/technical_analysis.R Thu Feb 29 13:59:19 2024 +0100
+++ b/R-codes/technical_analysis.R Thu Feb 29 17:40:29 2024 +0100
@@ -12,7 +12,7 @@
1212
1313 number_col <- 8 ## how many columns in the panel plots
1414
15-x_size <- 24
15+x_size <- 32
1616
1717 y_size <- 16
1818
@@ -240,6 +240,7 @@
240240 ggtitle(title_name)+
241241 facet_wrap( ~symbol, ncol = number_col , scales = "free_y")+
242242 my_ggplot_theme2("right")+
243+ scale_x_date(guide = guide_axis(n.dodge = 2))+
243244 ylab(paste("Coin Price in ", currency, sep=""))+
244245 xlab(NULL)
245246
@@ -253,6 +254,7 @@
253254 aes(x = timestamp, y = Volume)) +
254255 geom_line(linewidth=1)+
255256 ggtitle(title_name)+
257+ scale_x_date(guide = guide_axis(n.dodge = 2))+
256258 facet_wrap( ~symbol, ncol = number_col , scales = "free_y")+
257259 my_ggplot_theme2("right")+
258260 ylab(paste("Coin Volume in ", currency, sep=""))+
@@ -269,6 +271,7 @@
269271 geom_line(linewidth=1)+
270272 geom_hline(yintercept=1, color="red")+
271273 ggtitle(title_name)+
274+ scale_x_date(guide = guide_axis(n.dodge = 2))+
272275 facet_wrap( ~symbol, ncol = number_col , scales = "free_y")+
273276 my_ggplot_theme2("right")+
274277 ylab("Normalized Coin Price")+
@@ -285,7 +288,9 @@
285288 geom_line(linewidth=1)+
286289 geom_hline(yintercept=1, color="red")+
287290 ggtitle(title_name)+
291+ ## scale_x_date(guide = guide_axis(n.dodge = 2))+
288292 facet_wrap( ~symbol, ncol = number_col , scales = "free_y")+
293+ scale_x_date(guide = guide_axis(n.dodge = 2))+
289294 my_ggplot_theme2("right")+
290295 ylab("Normalized Coin Volume")+
291296 xlab(NULL)
@@ -306,6 +311,7 @@
306311 geom_line(linewidth=1)+
307312 ggtitle(title_name)+
308313 facet_wrap( ~coin, ncol = number_col , scales = "free_y")+
314+ scale_x_date(guide = guide_axis(n.dodge = 2))+
309315 my_ggplot_theme2("right")+
310316 ylab("Chaikin Accumulator")+
311317 xlab(NULL)
@@ -319,6 +325,7 @@
319325 aes(x = timestamp, y = value)) +
320326 geom_line(linewidth=1)+
321327 ggtitle(title_name)+
328+ scale_x_date(guide = guide_axis(n.dodge = 2))+
322329 geom_hline(yintercept=0.25, col="red") +
323330 geom_hline(yintercept=-0.25, col="blue") +
324331 facet_wrap( ~coin, ncol = number_col , scales = "free_y")+
@@ -338,6 +345,7 @@
338345 aes(x = timestamp, y = value)) +
339346 geom_line(linewidth=1)+
340347 ggtitle(title_name)+
348+ scale_x_date(guide = guide_axis(n.dodge = 2))+
341349 geom_hline(yintercept=50, col="red") +
342350 geom_hline(yintercept=-50, col="blue") +
343351 facet_wrap( ~coin, ncol = number_col , scales = "free_y")+
@@ -358,6 +366,7 @@
358366 ggtitle(title_name)+
359367 geom_hline(yintercept=80, col="red") +
360368 geom_hline(yintercept=20, col="blue") +
369+ scale_x_date(guide = guide_axis(n.dodge = 2))+
361370 facet_wrap( ~coin, ncol = number_col , scales = "free_y")+
362371 my_ggplot_theme2("right")+
363372 ylab("Money Flow Index")+
@@ -374,6 +383,7 @@
374383 aes(x = timestamp, y = value)) +
375384 geom_line(linewidth=1)+
376385 ggtitle(title_name)+
386+ scale_x_date(guide = guide_axis(n.dodge = 2))+
377387 facet_wrap( ~coin, ncol = number_col , scales = "free_y")+
378388 my_ggplot_theme2("right")+
379389 ylab("On Balance Volume")+
@@ -393,6 +403,7 @@
393403 ) +
394404 geom_line(linewidth=1)+
395405 ggtitle(title_name)+
406+ scale_x_date(guide = guide_axis(n.dodge = 2))+
396407 scale_color_manual(values=c("red", "black", "blue"))+
397408 facet_wrap( ~coin, ncol = number_col , scales = "free_y")+
398409 my_ggplot_theme2("right")+
@@ -410,6 +421,7 @@
410421 ggtitle(title_name)+
411422 geom_hline(yintercept=70, col="red") +
412423 geom_hline(yintercept=30, col="blue") +
424+ scale_x_date(guide = guide_axis(n.dodge = 2))+
413425 facet_wrap( ~coin, ncol = number_col , scales = "free_y")+
414426 my_ggplot_theme2("right")+
415427 ylab("Relative Strength Index")+
@@ -437,6 +449,7 @@
437449 scale_color_manual(values=c("red", "black", "blue"))+
438450 facet_wrap( ~coin, ncol = number_col , scales = "free_y")+
439451 my_ggplot_theme2("right")+
452+ scale_x_date(guide = guide_axis(n.dodge = 2))+
440453 ylab("Aroon Indicator")+
441454 xlab(NULL)
442455
@@ -454,6 +467,7 @@
454467 ) +
455468 geom_line(linewidth=1)+
456469 ggtitle(title_name)+
470+ scale_x_date(guide = guide_axis(n.dodge = 2))+
457471 scale_color_manual(values=c("red", "blue"))+
458472 facet_wrap( ~coin, ncol = number_col , scales = "free_y")+
459473 my_ggplot_theme2("right")+