# NOT RUN {
#Plot the dragon
add_title(dragon, preview = TRUE, title_text = "Dragon", title_size=20)
#That's hard to see--let's add a title bar:
# }
# NOT RUN {
add_title(dragon, preview = TRUE, title_text = "Dragon", title_size=20,
title_bar_color="white")
# }
# NOT RUN {
#Change the width of the bar:
# }
# NOT RUN {
add_title(dragon, preview = TRUE, title_text = "Dragon", title_size=20,
title_bar_color="white", title_offset = c(12,12))
# }
# NOT RUN {
#Change the color and title color:
# }
# NOT RUN {
add_title(dragon, preview = TRUE, title_text = "Dragon", title_size=20,
title_bar_color="red", title_color = "white", title_offset = c(12,12))
# }
# NOT RUN {
#Change the transparency:
# }
# NOT RUN {
add_title(dragon, preview = TRUE, title_text = "Dragon", title_size=20, title_bar_alpha = 0.8,
title_bar_color="red", title_color = "white", title_offset = c(12,12))
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab