From 5963f2507d958618f7df7223326131980e12d9b1 Mon Sep 17 00:00:00 2001 From: massimoaria Date: Tue, 13 Feb 2024 16:18:37 +0100 Subject: [PATCH] Solved issue in plot function --- R/plot.bibliometrix.R | 1 + 1 file changed, 1 insertion(+) diff --git a/R/plot.bibliometrix.R b/R/plot.bibliometrix.R index cd5c8317..0d92ede5 100644 --- a/R/plot.bibliometrix.R +++ b/R/plot.bibliometrix.R @@ -183,6 +183,7 @@ plot.bibliometrix<-function(x, ...){ row.names(Table2)=Table2$Year} xcoord <- c(max(Table2$Year)-0.02-diff(range(Table2$Year))*0.15, max(Table2$Year)-0.02)+1 + Table2$MeanTCperYear[is.nan(Table2$MeanTCperYear)] <- 0 ycoord <- c(min(Table2$MeanTCperYear),min(Table2$MeanTCperYear)+diff(range(Table2$MeanTCperYear))*0.15) g=ggplot(Table2, aes(x = .data$Year, y = .data$MeanTCperYear)) +