title: DBSCAN Clustering with additional features
body: <p>Can I apply DBSCAN with other features in addition to location ? and if it is available how can it be done through R or Spark ?</p>
  
  <p>I tried preparing an R table of 3 columns one for latitude, longitude and score (the feature I wanna cluster upon in addition to space feature) and when tried running DBSCAN with the following R code, I get the following plot which tells that the algorithm makes clusters upon each pair of columns (long, lat), (long, score), (lat, score), ...</p>
  
  <p>my R Code:</p>
  
  <pre><code>df = read.table("/home/ahmedelgamal/Desktop/preparedData")
  var = dbscan(df, eps = .013)
  plot(x = var, data = df)
  </code></pre>
  
  <p>and the plot I get:
  <a href="https://i.stack.imgur.com/DxF4i.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DxF4i.png" alt="enter image description here"></a></p>