在R语言中如何将两张散点图画在一起?答:例如vd2=c(-16.3,-12.2,-8.2,-3.9,0,5.9,9.7,13.2,18.1)vd1=c(-16.6,-12.5,-8.8,-4.2,0,6,9.8,15,18.2)y=c(-16,-12,-8,-4,0,4,8,12,16)plot(y~vd1)plot(y~vd2,col="red")然后在require(ggplot2)vd = rbind(data.frame(v=vd1, y=y, t=as....
在matlab中我画了散点图,但还需要把散点连接起来,请问用啥子程序能...答:clear all;N=5;x=20*rand([N,1]);y=20*rand([N,1]);max_text=num2cell(1:N);figure;grid on;hold on;plot(x,y,'r.','MarkerSize',20)text(x+0.5,y+0.5,max_text)for index=1:N temp_x=x(index);temp_y=y(index);for index2=1:N line([temp_x,x(index2)],[...