Skip to content

Conversation

maikol-solis
Copy link
Owner

No description provided.

Copilot

This comment was marked as outdated.

@maikol-solis maikol-solis requested a review from Copilot June 11, 2025 19:51
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds an option to project high-dimensional inputs down to two dimensions using UMAP before computing spatial geometry.

  • Introduces use_umap flag and ... to pass extra UMAP parameters
  • Implements UMAP projection when only x is provided with >2 columns
  • Adds error handling for unsupported input dimensions
Comments suppressed due to low confidence (2)

R/spatgeom.R:82

  • The new use_umap and ... parameters should be added to the function’s Roxygen documentation so users know how to enable UMAP and what extra arguments they can pass.
use_umap = FALSE,

R/spatgeom.R:89

  • No tests currently cover the UMAP branch. Add unit tests for use_umap = TRUE with a matrix of >2 columns to ensure projections and downstream logic behave as expected.
if (use_umap == TRUE && ncol(x) > 2) {

)
}

spatgeom_xy(
Copy link
Preview

Copilot AI Jun 11, 2025

Choose a reason for hiding this comment

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

The parameter domain_type is not forwarded to spatgeom_xy in the single-input branch, so the user’s chosen domain type is ignored and the default is always used. Add domain_type = domain_type to the argument list.

Copilot uses AI. Check for mistakes.

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.

1 participant