mirror of
https://github.com/Rucknium/misc-research.git
synced 2025-01-31 06:15:51 +00:00
Fix order of colors on plots
This commit is contained in:
parent
fbf3736753
commit
51e1aa6a71
1 changed files with 4 additions and 4 deletions
|
@ -63,14 +63,14 @@ spent.status.by.day.value.reshaped[, variable :=
|
|||
spent.status.by.day.outputs.reshaped <- melt(spent.status.by.day[,
|
||||
.(block_time.date, outputs.btc.unspent.bch.unspent, outputs.btc.spent.bch.unspent,
|
||||
outputs.btc.unspent.bch.spent, outputs.btc.spent.bch.spent)], id.vars = c("block_time.date"),
|
||||
measure.vars = c("outputs.btc.unspent.bch.unspent", "outputs.btc.spent.bch.unspent",
|
||||
"outputs.btc.unspent.bch.spent", "outputs.btc.spent.bch.spent"))
|
||||
measure.vars = c("outputs.btc.unspent.bch.unspent", "outputs.btc.unspent.bch.spent",
|
||||
"outputs.btc.spent.bch.unspent", "outputs.btc.spent.bch.spent"))
|
||||
|
||||
|
||||
spent.status.by.day.outputs.reshaped[, block_time.date := as.POSIXct(block_time.date)]
|
||||
spent.status.by.day.outputs.reshaped[, variable :=
|
||||
factor(variable, levels = c("outputs.btc.unspent.bch.unspent", "outputs.btc.spent.bch.unspent",
|
||||
"outputs.btc.unspent.bch.spent", "outputs.btc.spent.bch.spent"))]
|
||||
factor(variable, levels = c("outputs.btc.unspent.bch.unspent", "outputs.btc.unspent.bch.spent",
|
||||
"outputs.btc.spent.bch.unspent", "outputs.btc.spent.bch.spent"))]
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue