Skip to content

Commit

Permalink
fix use of .data with aes
Browse files Browse the repository at this point in the history
  • Loading branch information
grlloyd committed Mar 8, 2024
1 parent c128515 commit 0e59c64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/glog_transformation.R
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ glog_plot_optimised_lambda <- function(df, optimised_lambda, classes, qc_label,
length.out=plot_grid))
sse_df$SSE <- vapply(X=sse_df$lambda, FUN=SSE, y0=0, y=assay(df_qc),
FUN.VALUE=numeric(1))
g <- ggplot(data=sse_df, aes(x=data[['lambda']],y=data[['SSE']])) +
g <- ggplot(data=sse_df, aes(x=.data[['lambda']],y=.data[['SSE']])) +
geom_vline(xintercept=optimised_lambda, color="red") +
geom_line(linewidth=1.1) + theme_bw() +
labs (title="glog parameter optimisation",
Expand Down

0 comments on commit 0e59c64

Please sign in to comment.