Giter Site home page Giter Site logo

dip_class_plot Error about bp HOT 5 OPEN

mahmutoezmen avatar mahmutoezmen commented on August 14, 2024
dip_class_plot Error

from bp.

Comments (5)

johnschwenck avatar johnschwenck commented on August 14, 2024 1

from bp.

johnschwenck avatar johnschwenck commented on August 14, 2024

from bp.

mahmutoezmen avatar mahmutoezmen commented on August 14, 2024

Hi,
I am using the latest version of R, Rtools, and Rstudio. I have used the bp_hypnos dataset which is availanle in your bp package. Here is the code snippet I am using.

Thanks,

library(ggplot2)
library(bp)
library(readr)

library(bp)

#Load bp_hypnos
data(bp_hypnos)

#Process bp_hypnos
hypnos_proc <- process_data(bp_hypnos,
sbp = 'syst',
dbp = 'diast',
date_time = 'date.time',
hr = 'hr',
pp = 'PP',
map = 'MaP',
rpp = 'Rpp',
id = 'id',
visit = 'Visit',
wake = 'wake')
#> 2 values exceeded the DUL or DLL thresholds and were coerced to NA

dip_class_plot(hypnos_proc)
#Error in check_aesthetics():
#! Aesthetics must be either length 1 or the same as the data (1): colour, shape, x and y
#Run rlang::last_error() to see where the error occurred.

from bp.

johnschwenck avatar johnschwenck commented on August 14, 2024

Hi Mahmut,
I just tried recreating your error and it seems to work fine on my end. Are you still having issues? The error that you received is a ggplot error that occurs when there is a mismatch in the input data. Could you try restarting R and clear the workspace and try again? Let me know if this fixes your issue.

`library(bp)
data("bp_hypnos")

hypnos_proc <- process_data(bp_hypnos,
sbp = 'syst',
dbp = 'diast',
date_time = 'date.time',
hr = 'hr',
pp = 'PP',
map = 'MaP',
rpp = 'Rpp',
id = 'id',
visit = 'Visit',
wake = 'wake')

dip_class_plot(hypnos_proc)`

from bp.

mahmutoezmen avatar mahmutoezmen commented on August 14, 2024

Hi John,

I tried the script yo have sent, but I keep getting the same error though I have restarted my R and cleared the workspace.

from bp.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.