Skip to content

Commit b5ba852

Browse files
committed
resorted to screenshot because of overlapping points
1 parent 569697e commit b5ba852

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

classification1.Rmd

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ plot_3d <- scaled_cancer_3 |>
599599
z = ~Symmetry,
600600
color = ~Class,
601601
opacity = 0.4,
602-
size = 5,
602+
size = 2,
603603
colors = c("orange2", "steelblue2", "red"),
604604
symbol = ~Class, symbols = c('circle','circle','diamond'))
605605
@@ -638,9 +638,11 @@ plot_3d <- plot_3d %>%
638638
if(!is_latex_output()){
639639
plot_3d
640640
} else {
641-
scene = list(camera = list(eye = list(x=2, y=2, z = 1.5)))
642-
plot_3d <- plot_3d %>% layout(scene = scene)
643-
save_image(plot_3d, "img/plot3d_knn_classification.png", scale = 10)
641+
# scene = list(camera = list(eye = list(x=2, y=2, z = 1.5)))
642+
# plot_3d <- plot_3d %>% layout(scene = scene)
643+
# save_image(plot_3d, "img/plot3d_knn_classification.png", scale = 10)
644+
# cannot adjust size of points in this plot for pdf
645+
# so using a screenshot for now instead
644646
knitr::include_graphics("img/plot3d_knn_classification.png")
645647
}
646648
```

0 commit comments

Comments
 (0)