mirror of
https://gitlab.com/orbital-debris-research/directed-study/report-1.git
synced 2025-08-02 11:31:24 +00:00
final submission
This commit is contained in:
@@ -53,7 +53,7 @@ p1 = plot(df, dimensions = features, kind = "splom", Layout(title = "Raw Data"))
|
||||
|
||||
CSV.write("prepped.csv", df)
|
||||
|
||||
df.cluster = [1, 3, 2, 1, 2, 1, 1, 3, 1, 3, 2, 3, 1, 1, 2, 2, 1, 3, 1, 3, 1, 1, 2, 1, 1, 1, 1, 1, 2, 1, 1, 1, 3, 2, 1, 1, 2, 2, 3, 3, 2, 2, 2, 1,] # From matlab kmeans idx
|
||||
df.cluster = "Cluster " .* ([1, 3, 2, 1, 2, 1, 1, 3, 1, 3, 2, 3, 1, 1, 2, 2, 1, 3, 1, 3, 1, 1, 2, 1, 1, 1, 1, 1, 2, 1, 1, 1, 3, 2, 1, 1, 2, 2, 3, 3, 2, 2, 2, 1,] .|> string) # From matlab kmeans idx
|
||||
|
||||
|
||||
p2 = plot(df, dimensions = features, color = :cluster, kind = "splom", Layout(title = "Clustered Data"))
|
||||
@@ -62,3 +62,10 @@ p2 = plot(df, dimensions = features, color = :cluster, kind = "splom", Layout(ti
|
||||
|
||||
savefig(p1, "prepped.svg", width = 1000, height = 1000)
|
||||
savefig(p2, "prepped_clustered.svg", width = 1000, height = 1000)
|
||||
|
||||
open("./prepped.html", "w") do io
|
||||
PlotlyBase.to_html(io, p1.plot)
|
||||
end
|
||||
open("./prepped_clustered.html", "w") do io
|
||||
PlotlyBase.to_html(io, p2.plot)
|
||||
end
|
Reference in New Issue
Block a user