Nhập môn Trực quan hóa Dữ liệu với Julia
Gustavo Vieira Suñe
Data Analyst

# Đặt theme theme(:bright)# Tạo biểu đồ scatter scatter( streaming.Age, streaming."Frequency [K pop]", group=streaming."Frequency [K pop]", label=false,# Đặt bảng màu palette=:Dark2_5 )xlabel!("Age") ylabel!("Frequency of Play")

Đã gặp trước đây:
title, xlabel, ylabelxticks, ytickscolorlinecolor, linewidthmarkercolorframestyleCòn nhiều nữa:
xlims, ylimsalphalinestylelegend_title, legend_positionmarkersize, markershape...
theme(:bright) scatter( streaming.Age, streaming."Frequency [K pop]", group=streaming."Frequency [K pop]", label=false, palette=:Dark2_5# Thuộc tính marker markershape=:diamond, markersize=8, )xlabel!("Age") ylabel!("Frequency of Play")

theme(:bright) scatter( streaming.Age, streaming."Frequency [K pop]", group=streaming."Frequency [K pop]", label=false, palette=:Dark2_5 markershape=:diamond, markersize=8,# Độ trong suốt alpha=0.25 )xlabel!("Age") ylabel!("Frequency of Play")

# Đặt theme và độ dày nét mặc định theme(:dao, linewidth=4)# Tạo biểu đồ histogram histogram(streaming.BPM, label="Observed", color=:lightslateblue, normalize=true)# Thêm đường mật độ density!(streaming.BPM, label="Distribution", linecolor=:green2,# Kiểu nét linestyle=:dash)xlabel!("BPM") ylabel!("Probability")

theme(:dao, linewidth=4) histogram(streaming.BPM, label="Observed", color=:lightslateblue, normalize=true) density!(streaming.BPM, label="Distribution", linecolor=:green2, linestyle=:dash# Tùy chỉnh chú giải legend_title="Type", legend_position=:topright)# Đặt giới hạn trục x xlims!(50, 230)xlabel!("BPM") ylabel!("Probability")

plot(..., palette=palette_symbol)markersizemarkershape
alpha=opacity_valuexlims!(), ylims!()Thuộc tính đường: linetyle

Thuộc tính chú giải
legend_titlelegend_position (:right, :left, :top, :bottom, :topright, :topleft, ...)Nhập môn Trực quan hóa Dữ liệu với Julia