Comments (5)
from bp.
from bp.
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.
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.
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)
- bp_report plots fine to a file, but the screen output is extremely strange HOT 6
- bp_hist function gives undefined columns selected HOT 9
- bp_hist() with bp_children and bp_preg data HOT 1
- bp_scatter() subj parameter does not behave as expected HOT 1
- process_data() documentation, an OMRON script HOT 3
- Aggregate does not seem to work HOT 3
- Missing DATE_TIME-plot when executing bp_ts_plot() HOT 3
- Blood pressure for children
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bp.