simple_domain_plot {viraldomain}R Documentation

Create a Simple Domain Plot

Description

This function generates a domain plot for a simple model based on PCA distances of the provided data.

Usage

simple_domain_plot(featured_col, train_data, test_data, treshold_value)

Arguments

featured_col

Name of the featured column in the training data.

train_data

The training data used to fit the model.

test_data

The testing domain data used to calculate PCA distances.

treshold_value

The threshold for domain applicability scoring.

Value

A simple damain plot

Examples

set.seed(123)
library(dplyr)
# Specifying featured column
featured_col = "cd_2022"
train_data = viral |>
  dplyr::select("cd_2022", "vl_2022")
test_data = sero
treshold_value = 0.99
# Call the function

[Package viraldomain version 0.0.6 Index]