خرید بک لینک

Vote count: 0

I am quite experienced user so I am quite iritating by the fact that I caot find the answer by myself... I need to plot a function, which has jump in it's definition but everywhere else it is continuous and I want to see the jump on the graph. But R want to make it continous on the whole range and that makes fuy line which coect these two areas, but I need them to be visualy separated; I know that maybe dots instead of lines would make the work but I want to show that the function is continous everywhere else except the jump... in the definition of function I use indicator functions so the code is something like

for_plotting <- function(x){  (1/2 + x/2)*(x>=0.5) + (3*x)*(x<0.5)} 
plot(for_plotting,0,1)

(I also tried it with >= and <= together and it does not help) Is there a way how to do it? I need to do the picture into my thesis so you advices are very welcome :)

asked 5 mins ago

برچسب: نویسنده: استخدام کار تاريخ: چهارشنبه 19 خرداد 1395 ساعت: 1:51

صفحه بندی