# Parallel coordinates error in R

**URL:** <https://community.plotly.com/t/parallel-coordinates-error-in-r/3962>\
**Category:** Plotly R\
**Created:** [April 18, 2017, 7:01pm UTC](https://community.plotly.com/t/parallel-coordinates-error-in-r/3962 "2017-04-18T19:01:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cmoten33](https://avatars.discourse-cdn.com/v4/letter/c/35a633/32.png) [@cmoten33](https://community.plotly.com/u/cmoten33)\
**Post date:** [April 18, 2017, 7:01pm UTC](https://community.plotly.com/t/parallel-coordinates-error-in-r/3962/1 "2017-04-18T19:01:44Z")

</div>

Hello, I am trying to recreate the example plots located at this link [https://plot.ly/r/parallel-coordinates-plot/](https://plot.ly/r/parallel-coordinates-plot/). When I input the example code into R, I get the following error message:

Error: Trace type must be one of the following:  
‘scatter’, ‘bar’, ‘box’, ‘heatmap’, ‘histogram’, ‘histogram2d’, ‘histogram2dcontour’, ‘pie’, ‘contour’, ‘scatter3d’, ‘surface’, ‘mesh3d’, ‘scattergeo’, ‘choropleth’, ‘scattergl’, ‘scatterternary’, ‘scattermapbox’, ‘area’.

The code I used is below:

library(plotly)

p \<- plot\_ly(type = ‘parcoords’, line = list(color = ‘blue’),  
dimensions = list(  
list(range = c(1,5),  
constraintrange = c(1,2),  
label = ‘A’, values = c(1,4)),  
list(range = c(1,5),  
tickvals = c(1.5,3,4.5),  
label = ‘B’, values = c(3,1.5)),  
list(range = c(1,5),  
tickvals = c(1,2,4,5),  
label = ‘C’, values = c(2,4),  
ticktext = c(‘text 1’, ‘text 2’, ‘text 3’, ‘text 4’)),  
list(range = c(1,5),  
label = ‘D’, values = c(4,2))  
)  
)  
p

Was there an update to plotly that doesn’t include this trace anymore? Thanks in advance.

Cardy Moten

---

<div class="post-metadata">

**Author:** ![carson](https://avatars.discourse-cdn.com/v4/letter/c/e9bcb4/32.png) [@carson](https://community.plotly.com/u/carson)\
**Post date:** [April 18, 2017, 10:02pm UTC](https://community.plotly.com/t/parallel-coordinates-error-in-r/3962/2 "2017-04-18T22:02:13Z")

</div>

Hi @cmoten33, this currently only works with the dev version – `devtools::install_github("ropensci/plotly")`

---

<div class="post-metadata">

**Author:** ![cmoten33](https://avatars.discourse-cdn.com/v4/letter/c/35a633/32.png) [@cmoten33](https://community.plotly.com/u/cmoten33)\
**Post date:** [April 19, 2017, 12:33am UTC](https://community.plotly.com/t/parallel-coordinates-error-in-r/3962/3 "2017-04-19T00:33:30Z")

</div>

@carson, thanks for the suggestion. That fixed the error.
