Skip to content

Commit c73e9c1

Browse files
authored
Add files via upload
1 parent 53ccbd0 commit c73e9c1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

EDA2.Rmd

+2-3
Original file line numberDiff line numberDiff line change
@@ -253,10 +253,9 @@ d <- which(names(nyc.data)=="rentpct02")
253253
ggparcoord(data = nyc.data, columns = c(a,b,c,d))
254254
```
255255

256+
### Interactive Plot
256257

257-
258-
259-
To make our PCP, we will use the **plotly** library. This will give PCP useful interactivity. We can select portions of each variables line to highlight the connecting lines. We can also move the variable lines to the right and left. This is useful when many of the lines are bunched up and patterns aren't quite visual. For this plot, we just need the `plotly()` function. We need to specify the dataset, the type of plot, and the dimensions. The most difficult to understand part of this code is the `dimension =` part as we have to use nested lists to everything together. This consist of a list of variables, then a list of specifications for each variables. in our case it is not too much, just the name of the axis and the variable specification.
258+
To make our PCP interactive, we will use the **plotly** library. We will be able to select portions of each variable's line to highlight the connecting lines. We will also be able to move the variable lines to the right and left. This is useful when many of the lines are bunched up and patterns aren't quite visual. For this plot, we just need the `plotly()` function. We need to specify the dataset, the type of plot, and the dimensions. The most difficult to understand part of this code is the `dimension =` part as we have to use nested lists to everything together. This consist of a list of variables, then a list of specifications for each variables. in our case it is not too much, just the name of the axis and the variable specification.
260259

261260

262261
```{r}

0 commit comments

Comments
 (0)