# Problems with plotly in R studio

**URL:** <https://community.plotly.com/t/problems-with-plotly-in-r-studio/4436>\
**Category:** Plotly R\
**Created:** [June 6, 2017, 6:14pm UTC](https://community.plotly.com/t/problems-with-plotly-in-r-studio/4436 "2017-06-06T18:14:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mjb22932](https://avatars.discourse-cdn.com/v4/letter/m/eada6e/32.png) [@mjb22932](https://community.plotly.com/u/mjb22932)\
**Post date:** [June 6, 2017, 6:14pm UTC](https://community.plotly.com/t/problems-with-plotly-in-r-studio/4436/1 "2017-06-06T18:14:56Z")

</div>

Having trouble changing how my heat map looks in ploytly. I’m using R studio. I have tried adding a title, changing the layout and adding a trace. However, the graph in the viewer is not changing. I have tried refreshing the viewer and looking through an external window. I am connected to the internet.

Code:

plotflow = function(varname,ind\_dest, ind\_orig, geo\_dest, geo\_orig, qtr){  
dummy = findit(ind\_dest, ind\_orig, geo\_dest, geo\_orig, qtr)

# Here, I re-factor the variables so that the x and y axes scale correctly

plot\_ly(type=“heatmap”, z=eval(parse(text=paste(“dummy”,"$",varname,sep=""))), x=factor(dummy$industry), y=factor(dummy$industry\_orig),  
colors = “Spectral”)%\>%  
add\_trace()%\>%  
layout(title = “Look at me”)  
return§  
}

Thanks,

Matt
