corr_scatterly Correlation Scatter Plot using R Plotly

corr_scatterly(
  data = NULL,
  x = NULL,
  y = NULL,
  corr_coef = NULL,
  xname = "",
  yname = ""
)

Arguments

data

is a Data Frame

x

is a column of Data Frame

y

is a column of Data Frame

corr_coef

is a Correlation Coeficient

xname

is a string and Name of X-axis

yname

is a string and Name of Y-axis

Value

plot

Examples

spearman<- corr_coef_spearman(variable1= cars$speed, variable2=cars$dist, decimal = 2) corr_scatterly(data=cars,x=cars$speed,y=cars$dist,corr_coef=spearman,xname="speed",yname="dist")
#> Warning: The collaborate button is no longer supported
#> Warning: 'config' objects don't have these attributes: 'collaborate' #> Valid attributes include: #> 'staticPlot', 'plotlyServerURL', 'editable', 'edits', 'autosizable', 'responsive', 'fillFrame', 'frameMargins', 'scrollZoom', 'doubleClick', 'doubleClickDelay', 'showAxisDragHandles', 'showAxisRangeEntryBoxes', 'showTips', 'showLink', 'linkText', 'sendData', 'showSources', 'displayModeBar', 'showSendToCloud', 'showEditInChartStudio', 'modeBarButtonsToRemove', 'modeBarButtonsToAdd', 'modeBarButtons', 'toImageButtonOptions', 'displaylogo', 'watermark', 'plotGlPixelRatio', 'setBackground', 'topojsonURL', 'mapboxAccessToken', 'logging', 'queueLength', 'globalTransforms', 'locale', 'locales'