Skip to content

Commit 9ce7713

Browse files
committed
adjusting size of zoomed in plot
1 parent 5dc63b6 commit 9ce7713

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

classification1.Rmd

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -999,7 +999,7 @@ ggarrange(unscaled, scaled, ncol = 2, common.legend = TRUE, legend = "bottom")
999999
10001000
```
10011001

1002-
```{r 05-scaling-plt-zoomed, fig.height = 5, fig.width = 10, echo = FALSE, fig.cap = "Close up of three nearest neighbors for unstandardized data."}
1002+
```{r 05-scaling-plt-zoomed, fig.height = 4.5, fig.width = 9, echo = FALSE, fig.cap = "Close up of three nearest neighbors for unstandardized data."}
10031003
library(ggforce)
10041004
ggplot(unscaled_cancer, aes(x = Area,
10051005
y = Smoothness,
@@ -1034,7 +1034,8 @@ ggplot(unscaled_cancer, aes(x = Area,
10341034
), color = "black") +
10351035
facet_zoom(x = ( Area > 380 & Area < 420) ,
10361036
y = (Smoothness > 0.08 & Smoothness < 0.14), zoom.size = 2) +
1037-
theme_bw() + theme(legend.position="bottom", text = element_text(size = 16))
1037+
theme_bw() +
1038+
theme(text = element_text(size = 14), legend.position="bottom")
10381039
```
10391040

10401041
### Balancing

0 commit comments

Comments
 (0)