Because the y values are too small, I need to use a log scale for y axis to show the differences. In the data, some entries do not have any value (0). Is there any way to show \
Choose some minimum value, and use that to represent 0:
m <- min(y[y!=0])/10 plot(x, pmax(y, m), log="y")