Skip to content

Commit d968aeb

Browse files
Fix incorrect class registration of fortify() method
1 parent 96ff739 commit d968aeb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

R/zzz.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,19 @@
2525
if (package_version(ggtime_version) >= "0.2.0") {
2626
register_s3_method("ggplot2", "autoplot", "fbl_ts", utils::getS3method("autoplot", "fbl_ts", envir = ggtime_ns))
2727
register_s3_method("ggplot2", "autolayer", "fbl_ts", utils::getS3method("autolayer", "fbl_ts", envir = ggtime_ns))
28-
register_s3_method("ggplot2", "fortify", "tbl_ts", utils::getS3method("fortify", "fbl_ts", envir = ggtime_ns))
28+
register_s3_method("ggplot2", "fortify", "fbl_ts", utils::getS3method("fortify", "fbl_ts", envir = ggtime_ns))
2929
} else {
3030
register_s3_method("ggplot2", "autoplot", "fbl_ts", autoplot.fbl_ts)
3131
register_s3_method("ggplot2", "autolayer", "fbl_ts", autolayer.fbl_ts)
32-
register_s3_method("ggplot2", "fortify", "tbl_ts", fortify.fbl_ts)
32+
register_s3_method("ggplot2", "fortify", "fbl_ts", fortify.fbl_ts)
3333
}
3434
} else {
3535
register_s3_method("ggplot2", "autoplot", "fbl_ts", autoplot.fbl_ts)
3636
register_s3_method("ggplot2", "autoplot", "tbl_ts", autoplot.tbl_ts)
3737
register_s3_method("ggplot2", "autoplot", "dcmp_ts", autoplot.dcmp_ts)
3838
register_s3_method("ggplot2", "autolayer", "fbl_ts", autolayer.fbl_ts)
3939
register_s3_method("ggplot2", "autolayer", "tbl_ts", autolayer.fbl_ts)
40-
register_s3_method("ggplot2", "fortify", "tbl_ts", fortify.fbl_ts)
40+
register_s3_method("ggplot2", "fortify", "fbl_ts", fortify.fbl_ts)
4141
}
4242

4343

0 commit comments

Comments
 (0)