Skip to content

Conversation

@asizemore
Copy link
Member

@asizemore asizemore commented Feb 7, 2025

Resolves #263

The scatterplot will now return the ids of points if an id column is given and returnPointIds = TRUE.

NOTE: This feature was not implemented for the case where value=density nor for when the correlationMethod != 'none'. I attempted both, found the former very tough to debug, and found that the latter already was erring (see main). Since neither are part of production code, nor do we have any plans to make them production code, I'm leaving them as is. I also commented out the failing correlation tests.

Copy link
Member

@bobular bobular left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good - just one comment!

if (idColumn %in% names(.dt) && nrow(.dt) == uniqueN(.dt[[idColumn]])) {
idCol <- idColumn
} else {
idCol <- NULL
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi! Should this maybe throw an error? Seems like there will be downstream trouble if we asked for point IDs and there's no column to get them from?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a good idea! I'll add it.

@asizemore asizemore marked this pull request as ready for review February 13, 2025 15:44
@asizemore asizemore requested a review from bobular February 13, 2025 15:44
@bobular
Copy link
Member

bobular commented Feb 14, 2025 via email

@asizemore asizemore merged commit 85df484 into main Feb 14, 2025
0 of 5 checks passed
@asizemore asizemore deleted the feature-263-return-pointIDs branch February 14, 2025 22:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Scatter return point ids

3 participants