# NOT RUN {
library(SMITIDvisu)
data(transmissiontree)
maptt(tt.events, multipleValuesByTime = c('infectedby', 'probabilities'))
# In this example:
# - values lower than 20 will be yellow ;
# - values between 20 and 25 will use colors between yellow and red ;
# - values greater than 25 will be red.
maptt(tt.events,
multipleValuesByTime = c('infectedby', 'probabilities'),
color1 = 'yellow',
color2 = 'red',
nbColors = 10,
minWeight = 0,
maxWeight = 30,
weight1 = 20,
weight2 = 25
)
# }
Run the code above in your browser using DataLab