# Plot a complete datasets in one view

**URL:** https://community.plotly.com/t/plot-a-complete-datasets-in-one-view/23520
**Category:** Plotly R
**Created:** [May 16, 2019, 7:38am UTC](https://community.plotly.com/t/plot-a-complete-datasets-in-one-view/23520 "2019-05-16T07:38:10Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![hazeltje](https://avatars.discourse-cdn.com/v4/letter/h/e56c9b/32.png) [@hazeltje](https://community.plotly.com/u/hazeltje)
#### Post date: [May 16, 2019, 7:38am UTC](https://community.plotly.com/t/plot-a-complete-datasets-in-one-view/23520/1 "2019-05-16T07:38:10Z")

</div>

Hi, I am new to plotly and R and learning, I am struggling with plotting multiple datasets in one view  
I have dataframe 1 with first column Wavelength[1:2048,1] and the next 400 columns measurement data [1:2048,2:401]  
and dataframe 2 also first column wavelength and next columns data.

the first dataset I plot with:

AEDDataMelt \<- melt(AEDPlotData, id=“Wavelength”)  
plot\_ly(AEDDataMelt, x= ~Wavelength, y= ~value) %\>%  
add\_lines(color = ~ordered(variable))

how to add lines in the same view from another dataset without haven to merge and melt ?

thanks for the help
