Skip to content

Commit 28cffb0

Browse files
committed
testing new ID passing
1 parent 192a91f commit 28cffb0

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

R/ranef.r

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ ranefdata <- function(object, usevars, newdata, idvar, CI = .95, robust = FALSE)
206206

207207
for (i in seq_along(usevars)) {
208208
plotdat[[i]] <- .summary.ID(relong, usevars[i], idvar = idvar, CI = CI, robust = robust)
209-
tmpplot <- ggplot(plotdat[[i]], aes(ID, Estimate, ymin = LL, ymax = UL)) +
209+
tmpplot <- ggplot(plotdat[[i]], aes(.data[[idvar]], Estimate, ymin = LL, ymax = UL)) +
210210
annotate("rect",
211211
xmin = -Inf, xmax = Inf,
212212
ymin = yhat[[i]][1, LL], ymax = yhat[[i]][1, UL],
@@ -276,15 +276,15 @@ ranefdata <- function(object, usevars, newdata, idvar, CI = .95, robust = FALSE)
276276
xlab(tmp[i, A]) +
277277
ylab(tmp[i, B])
278278

279-
if (tmp[i, interceptA] & tmp[i, sigmaA]) {
279+
if (tmp[i, interceptA] && tmp[i, sigmaA]) {
280280
tmpplot <- tmpplot +
281281
scale_x_continuous(
282282
trans = log_trans(),
283283
breaks = breaks_log(n = 10, base = exp(1)),
284284
labels = label_math(e^.x, format = log)
285285
)
286286
}
287-
if (tmp[i, interceptB] & tmp[i, sigmaB]) {
287+
if (tmp[i, interceptB] && tmp[i, sigmaB]) {
288288
tmpplot <- tmpplot +
289289
scale_y_continuous(
290290
trans = log_trans(),

0 commit comments

Comments
 (0)