Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7621371
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T04:10:45+00:00 2026-05-31T04:10:45+00:00

At present, I generate a figure using the following script dat <- matrix(runif(1000*99),99,1000) dat

  • 0

At present, I generate a figure using the following script

 dat <- matrix(runif(1000*99),99,1000)
 dat <- rbind(rep(0.1,1000),dat)
 out <- cmdscale(dist(dat),k = 2)
 plot(out)
 points(out[1,1],out[1,2],col = "red")

enter image description here

Based on the above figure, I want to connect that red point with other points, how to do that?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T04:10:46+00:00Added an answer on May 31, 2026 at 4:10 am

    If you want to connect all the points to that red point, you could try…

    segments(out[1,1],out[1,2],out[,1],out[,2])
    

    enter image description here

    Adjusting the order of the printing and the graphical characteristics could make it a little easier to look at too:

    dat <- matrix(runif(1000*99),99,1000)
    dat <- rbind(rep(0.1,1000),dat)
    out <- cmdscale(dist(dat),k = 2)
    plot(out,type="n")
    segments(out[1,1],out[1,2],out[,1],out[,2],col="#cccccc")
    points(out,col="black",pch=20)
    points(out[1,1],out[1,2],col = "red",pch=20)
    

    enter image description here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have it's a trivial problem but I can't figure it out. I'm using
I am trying to figure out how to accomplish the following: Handle client-side click
How can ItemCheckedEventArgs.Item.Selected = ItemCheckedEventArgs.Item.Checked generate The given key was not present in the
At present I am using eclipse for JAVA project. I always wanted to use
In the JSFiddle, I am trying to generate divs dynamically using javascript. Those divs
I was trying to figure out how much RAM / CPU I needed at
I'm using the following code to get ErrorStream. shellinput[0] = /system/xbin/dd if=/dev/zero of=; shellinput[1]
I've been trying to generate a satellite assembly using the LocBaml tool downloaded from
I have a program that is using the excel interop routines to generate a
I have to generate the following layout for a web site with all elements

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.