Comments (7)
@ayogasekaram Thank you for working on that, a colleague will test the new function shortly.
For your question, I believe that alt_counts_df is always equal to df (in our case), I don't see any case when you would like to put two different datasets in the two arguments. So I think we are fine from this side, I don't think we need a warning message.
from tern.
yes it's been addressed in this PR
from tern.
Hi @legrasv, I have a PR going up for this soon so I can tag you for review. I just wanted to confirm if you have any warning message in mind in the case of the alt_counts_df
? for example, if the levels for the facet_var
are set in adpc for example, but the user also supplied an alt_counts_df
, the same levels need to be set there for the plot legend to reflect it.
from tern.
@ayogasekaram I got this error message which I can't debug, it looks like I don't have the function sfun loaded (when I am using browser()), what is this function? how can I get it?
from tern.
@legrasv the sfun is s_summary but that default should already be set in the g_lineplot parameters. Let me take a look on my end as well!
from tern.
Dear NEST,
I found a bug in the code of g_lineplot for the strata:
matches <- sapply(unique(df_N[[group_var]]), function(x) unique(df_N[[paste0(group_var, "_N")]])[grepl(paste0("^", x), unique(df_N[[paste0(group_var, "_N")]]))])
in this piece of code, it happens that group_var contains specific regex characters and therefore the grepl will not work, example:
Browse[2]> grepl("^PART 1 \\(Period Effect\\)", unique(df_N[[paste0(group_var, "_N")]]))
[1] TRUE TRUE FALSE FALSE
Browse[2]> grepl("^PART 1 (Period Effect)", unique(df_N[[paste0(group_var, "_N")]]))
[1] FALSE FALSE FALSE FALSE
-> I need to tell that "()" are not part of the regex expression. I don't know how we could handle that in general. Here I have the bug with the "(", but it could happen with regex characters such as "+", ".", "[", etc.
from tern.
@ayogasekaram can this issue be closed now?
from tern.
Related Issues (20)
- Requirements from checks
- [Bug]: Counting Error in `count_occurrences_by_grade` HOT 2
- [Bug]: "label_all" dose not work in `tabulate_survival_subgroups()` HOT 2
- Manually specify shapes within `g_lineplot` when >6 group levels exist
- [Feature Request]: control line type in g_lineplot
- [Bug]: line disappears in g_lineplot when only one datapoint per timepoint is present
- [Feature Request]: control page numbering style for plots
- Fix indentation in functions using `matrix_form`
- `max_width` of `decorate_grob()` seems to be incorrectly handled HOT 3
- [Bug]: Special characters with emmeans::contrast produce empty output HOT 3
- Add `xticks`, `xlim`, and `ylim` arguments to `g_lineplot`
- [Feature Request]: Add stat_propdiff_ci to tabulate binary response by subgroup
- Integrate better wrapping functions for `decorate_grob` titles and subtitles
- export `tern:::as_factor_keep_attributes`
- [CRAN Release]: <0.9.5>
- [Bug]: decorate_grob_set fails when combining empty string and spaces in footnotes
- URGENT! Failed CRAN Checks: 2024-06-20 HOT 3
- URGENT! Failed CRAN Checks: 2024-06-21 HOT 3
- [Bug]: `surv_time` doesn't work with data that only has events HOT 1
- URGENT! Failed CRAN Checks: 2024-06-23
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 tern.