结果:找到“gplot”相关内容723个,排序为按回复时间降序,搜索更多相关帖子请点击“高级”
【教学课件】武汉大学 SAS统计分析及应用
2 个回复 - 340 次查看
【教学课件】武汉大学 SAS统计分析及应用1.0 SAS基础2.1 SAS语言概述2.2数据步2.3讨程步2.4全程语句3.1描述性统计的相关概念3.2集中趋势的数据描述3.3离散趋势的数据描述3.4表示分布形状的统计量4.1 SGPLOT过程制 ...
2023-11-5 18:19 - wangziyan666 - 现金交易版
R语言基础与ggplot2绘图ppt与数据及代码
1 个回复 - 724 次查看
R语言基础与g
gplot2绘图pptR语言基础与g
gplot2绘图ppt与数据及代码
更详细的内容,请参考下面的截图说明!
R语言基础与g
gplot2绘图ppt与数据及代码
R语言基础与g
gplot2绘图ppt与数据及代码
R语言基础与g ...
2022-9-20 19:51 - Lala-20200 - 现金交易版
ggplot2 如何画箭头表示的风速风向时间序列图
12 个回复 - 8600 次查看
想实现如下图的风速风向图:每一个数据是一个小时的风速风向数据,根据风速风向数据画出给定时间范围的风速风向到一条时间序列轴上,用箭头的长短代表风速大小,箭头方向代表风速方向,如果某一时刻风速或风向有NA值 ...
2019-4-23 21:52 - 北非i - R语言论坛
ggplot2求教——如何调整x轴显示的时间刻度
15 个回复 - 13011 次查看
数据入图所示,year是日期数据
g
gplot(dt1,aes(x = year,y = rate)) +
geom_line() +
geom_point()
代码如上,
但是出来的图,x轴是显示2014,2016,2018
我想让x轴显示2013,2014,2015,2016,2017,20 ...
2018-6-7 14:24 - allain - R语言论坛
r语言ggplot2图例修改
2 个回复 - 1164 次查看
g
gplot(data = TFP_S,aes(rtfpna,color = country),scale_color_brewer(palette = 1)) + geom_density()
1.修改图例为线型,而不是方框
2.修改图例为中文,而不是英文
2021-5-24 17:21 - luochen1002 - R语言论坛
stata17无法下载grqreg和qregplot
2 个回复 - 616 次查看
输入命令:ssc install grqreg/ssc install grqreg.pkg
结果:
remote connection failed
http://fmwww.bc.edu/repec/bocode/g/ either
1) is not a valid URL, or
2) could not be contacted, or
3) ...
2024-5-14 21:20 - 木本术 - Stata专版
ggplot2如何合并两个图例?
2 个回复 - 287 次查看
rt,在对散点图设置了color和shape之后,color和shape分别出现了一个图例,效果如图1所示。如何让这两个图例合并,呈现图二的效果
呢?
2024-1-3 21:37 - zzuer - R语言论坛
ggplot画图求助
1 个回复 - 298 次查看
我在使用g
gplot2画分面图遇到一个问题,想要使用geom_text给每个分面添加一个不同的注释,但是这个注释没有添加到原本的图上,而是另外添加了一个分面,请问有没有大佬知道怎么回事,该怎么解决?谢谢~具体数据和代码 ...
2023-10-18 15:54 - ly_0 - R语言论坛
ggplot2中如何对 个别 图例项 文本字体 加粗,谢谢!
1 个回复 - 866 次查看
请问在g
gplot2中如何对 个别 图例项 文本字体 加粗,谢谢!
说明:有2个图例,对第2个图例的其中之一图例项的文本字体 加粗;
也安装了ggtext包。
fig1 + scale_color_manual(value = "blue", lables = "**图 ...
2023-5-24 12:14 - priss111 - R语言论坛
proc sgplot画个体折线图
2 个回复 - 444 次查看
data one;
input name $ value time $;
cards;
N1 33 T1
N1 45 T2
N1 54 T3
N2 34 T1
N2 38 T2
N2 44 T3
;
run;
proc s
gplot data=one;
series x=time y=value /group=name;
run;
怎样用proc ...
2023-9-18 20:21 - qk83792561 - SAS专版
ggplot日期格式的显示
7 个回复 - 443 次查看
用ggline做的图,x轴的日期标签如何显示全啊(只显示了3个,实际是7个点),ggline(weight230829, x = "日期", y = "体重", ylab="体重(g)", add = c("mean_sd"),linetype = "组别",
color = "组别",s ...
2023-9-6 14:43 - edward1212 - R语言论坛
SAS生存时间图-Lifetest Vs SGPlot
4 个回复 - 406 次查看
proc lifetest自动生成的生存时间图(如下),一般就够用了,
但是proc lifetest生成的数据集(Survivalplot十HomTests)简单处理一下,使用proc s
gplot可以更自由,更自主的DIY图形(如下),
Sample Code:
...
2023-8-24 12:49 - AngleeZZ - SAS专版
SAS趣图分享-sgplot+scatter五星红旗?
1 个回复 - 266 次查看
五星红旗?s
gplot+scatter轻松实现参考代码data star;
x1=0.5;y1=4.0;output;
x2=1.5;y2=3.0;output;
x2=2.0;y2=3.5;output;
x2=2.0;y2=4.0;output;
x2=1.5;y2=4.5;output;
run;
ods graphics/width=500 he ...
2023-8-25 08:15 - AngleeZZ - SAS专版
R语言 ggplot2绘图辅助包ggplotAssist
1 个回复 - 428 次查看
#安装代码命令,先安装devtools包,才能正常运行下面的安装命令
devtools::instal1_github("cardiomoon/g
gplotAssist")
安装完成后,重启R studio程序,在addings中可以看到g
gplotAssist
随后导入需要绘图的数据 ...
2023-8-22 08:48 - xiao_zhe - R语言论坛
ggplot2学习9
0 个回复 - 346 次查看
Often you want to label existing points on the plot. You don’t want the
text to overlap with the points (or bars etc), so it’s useful to offset the text
a little. The nudge x and nudge y parameter ...
2023-8-5 15:27 - wxxstar21 - R语言论坛
ggplot2学习8
0 个回复 - 271 次查看
It is useful to think about the purpose of each layer before it is added. In
general, there are three purposes for a layer:
• To display the data. We plot the raw data for many reasons, relyin ...
2023-8-5 15:10 - wxxstar21 - R语言论坛
ggplot2学习7
0 个回复 - 269 次查看
Quick Plots
In some cases, you will want to create a quick plot with a minimum of typing.
In these cases you may prefer to use qplot() over g
gplot(). qplot() lets you
define a plot in a single call ...
2023-8-5 11:07 - wxxstar21 - R语言论坛
ggplot2学习6
0 个回复 - 268 次查看
Time Series with Line and Path Plots
Line and path plots are typically used for time series data. Line plots join the
points from left to right, while path plots join them in the order that they
ap ...
2023-8-5 11:01 - wxxstar21 - R语言论坛
ggplot2学习5
0 个回复 - 273 次查看
Plot Geoms
You might guess that by substituting geom point() for a different geom function, you’d get a different type of plot. That’s a great guess! In the following
sections, you’ll learn about ...
2023-8-5 10:59 - wxxstar21 - R语言论坛
ggplot2学习4
0 个回复 - 245 次查看
Facetting
Another technique for displaying additional categorical variables on a plot
is facetting. Facetting creates tables of graphics by splitting the data into
subsets and displaying the same g ...
2023-8-5 10:50 - wxxstar21 - R语言论坛
ggplot2学习3
0 个回复 - 218 次查看
Different types of aesthetic attributes work better with different types of
variables. For example, colour and shape work well with categorical variables,
while size works well for continuous variab ...
2023-8-5 10:46 - wxxstar21 - R语言论坛
ggplot2学习3
0 个回复 - 242 次查看
Colour, Size, Shape and Other Aesthetic Attributes
To add additional variables to a plot, we can use other aesthetics like colour,
shape, and size (NB: while I use British spelling throughout this b ...
2023-8-5 10:40 - wxxstar21 - R语言论坛
ggplot2学习2
0 个回复 - 250 次查看
Every g
gplot2 plot has three key components:
1. data,
2. A set of aesthetic mappings between variables in the data and visual
properties, and
3. At least one layer which describes how to render ea ...
2023-8-5 10:32 - wxxstar21 - R语言论坛
ggplot2学习1
0 个回复 - 289 次查看
we’ll mostly use one data set that’s bundled with g
gplot2:
mpg. It includes information about the fuel economy of popular car models
in 1999 and 2008, collected by the US Environmental Protection ...
2023-8-5 10:28 - wxxstar21 - R语言论坛
R语言ggplot置信区间geom_ribbon问题
0 个回复 - 331 次查看
我在作图的时候使用了geom_ribbon绘制置信区间
geom_ribbon(aes(ymin=95%CI下限,ymax=95%CI上限,x=x数据),fill="lightskyblue",alpha=0.6)
为了让折线平滑,我使用了ggalt包,geom_xspline()使得折线平滑
然后做出 ...
2023-2-13 11:24 - ZXL2022 - SPSS论坛
用sgplot作dot图,怎么把数字填在旁边
2 个回复 - 1674 次查看
请教各位大神,我用proc s
gplot 的dot statement做了如图所示的confidence interval的dot图,我想在每个线段后面把mean 和 confidence limit的数字表达出来,应该怎么设置呀?
2015-1-4 20:24 - 小宝爱波1314 - SAS专版
R语言ggplot绘制环形图,固定切片顺序
3 个回复 - 438 次查看
在R语言中,我使用g
gplot绘制环形图,我想让每一个环形图的切片排序为“BA”,“Gini”,“MAT”,“PH”,但是R语言默认的是变量的占比大小的进行排序,下面我放置了图片和代码,请各位帮帮忙,非常感谢。
dat = d ...
2022-12-13 11:34 - 2017110138 - R语言论坛
sas sgplot 标签小数点
2 个回复 - 538 次查看
如何保留标签为1位小数点,本人写了段程序,分娩不同月份(ym)的产仔数(F12),图像处理后标签显示3位小数点,很难看,能不能保留1位小数。
proc s
gplot data=pzfm3;
vbar ym/ stat=freq barwidth=0.3 fillattr ...
2022-9-27 22:09 - 我是守望者 - SAS专版
ggplot画图时出现以下警告
3 个回复 - 8344 次查看
我用g
gplot2画分组直方图,数据格式如下:
> head(data)
diff_methy sample
1 0.42 L11N_L11T
2 0.55 L11N_L11T
3 10.93 L11N_L11T
4 -1.70 L11N_L11T
5 -4.04 L11N_L11T
6 ...
2019-3-29 17:13 - 不二不幸福 - R语言论坛
ggplot2 饼图的分面问题
7 个回复 - 6405 次查看
如图,饼图分面有问题,怀疑是coord_polar(theta = "y")导致的都是按照最多一天画的饼图。请问如何让各个饼图按照各自的合集画图(即都是完整的圆),源代码如下:g
gplot(order_sum[1:45,], aes(x = "", y = order_n ...
2015-11-17 18:03 - zl66983279 - R语言论坛
【独家发布】R中的ggplot2包疑惑,请大神解答
17 个回复 - 6694 次查看
我去年用了g
gplot2包,当时安装以后,library不了,提示需要加载一些依赖的包,大概有十几个,耗费了大量时间查找、下载、安装、加载。总算可以正常使用了。
今年再次运行library(g
gplot2),又提示缺少一些依赖 ...
2021-12-7 11:13 - kfywt - R语言论坛
ggplot分面作图后,怎么改变其中线条的类型。
1 个回复 - 605 次查看
下面是用g
gplot作图的程序,求大神看看有没有可以解决的,运用了分面作图的函数后,不能改变其中线条的类型,用过scale_linetype_manual了,并没有变化。
library(dplyr)
library(g
gplot2)
I020 = read.csv(" ...
2022-8-22 01:24 - 3513_1609992162 - R语言论坛
求教:在ggplot2使用geom_point画点的大小问题
3 个回复 - 17594 次查看
在g
gplot2中使用geom_point时,size=value可以使点的大小根据值的不同而变化,但因为size已经被使用了,如果我想整体放大所有的点,有什么办法吗?用的是plot()+geom_point(data=mydata,aes(x=lon,y=lat,size=value2 ...
2018-9-5 10:49 - wanyc - R语言论坛
怎样画sgplot的垂直参考线?
7 个回复 - 6485 次查看
proc s
gplot data=kall_5;
series x=date y=netValue;
run;
想在2017/01/01处画根垂直的参考线,怎么整的呢?
2017-2-28 12:26 - freetiger - SAS专版
【R语言绘图问题求助】ggplot直方图方向问题
3 个回复 - 1135 次查看
目标:用g
gplot2中的geom_histogram绘制出一个朝向为左的直方图。与附件1这个hist函数画出的图类似
现状: 画出来的图是右朝向的,不清楚哪个参数能改变图形朝向。见附件2
【想请问一下哪个参数,或者用什么方法 ...
2022-1-16 00:54 - 江东跳跳虎 - 悬赏大厅
请问如何使用ggplot2画出平滑曲线(不是趋势线)?
16 个回复 - 48275 次查看
请教大神~~~
请问如何适用g
gplot2画出平滑曲线(不是趋势线)?
目前使用如下代码:
g
gplot(f,aes(x=TI,y=RAIN,colour=MODEL,group=MODEL))+geom_line()
可以画到这步:
但是是想画成这样:
请问该使用 ...
2015-4-2 15:47 - 艾弗新 - R语言论坛
关于ggplot2中图例的添加
1 个回复 - 685 次查看
在g
gplot2下,如何自定义的添加一个新的图例?
比如我画了一个散点图,有两个分组,我不想用自动生成的图例legend,而是想换成自定义的条状形的图例,有何方法呢?我想过的方法:不显示原有的图例,然后添加新的自定 ...
2021-12-5 15:27 - wuzulin - R语言论坛
R语言ggplot给图形批量添加角度度数注释
4 个回复 - 1043 次查看
大家好,我需要给g
gplot2画出的图添加度数标注(°)注释(比如30.21°)。每个图度数不一样,如下图所示。怎么通过代码实现呢,谢谢大家。
基础添加文本或数字注释代码如下:
尝试了如下代码但是没有 ...
2021-10-19 15:58 - hopui2017 - R语言论坛
ggplot中stat_ellipse添加置信区间,怎么使椭圆内有填充色
5 个回复 - 10242 次查看
如题,想让绿环变半透明的绿椭圆
p3 = g
gplot(sample.score, aes(p1, o1, color = age)) +
#添加线条
geom_hline(yintercept = 0, linetype = 'dashed', size = 0.5) +
geom_vline(xintercept = ...
2021-5-24 14:16 - Laura1020 - R语言论坛
R语言ggplot2画箱线图显示问题
2 个回复 - 4900 次查看
如图,由于横坐标数量多,箱线图显示除了问题。我的代码如下,有试图在png()里面设置宽和高,但是依旧显示不正常。请问这个应该怎么解决?
library(g
gplot2)
setwd("F:/zm-R-work/R命令/workdir")
png(file ...
2019-4-5 18:14 - zhminn - R语言论坛
请教ggplot作图问题?
3 个回复 - 665 次查看
g
gplot(data = sr_px_2020, mapping = aes(x = 就业时间, y = 收入, colour = 有过培训经历与否)) + geom_point(size = 2)
右边图例怎么改为0 1 两个分类,现在是显示成一个连续变量了,原数据是分类变量的。。 ...
2021-7-31 21:47 - weidongyi156 - R语言论坛
ggplot2 分面绘图,求助
5 个回复 - 1187 次查看
请教各位朋友,我在绘制分面图时遇到问题:1.每个子图有10个分类项目,为何Y轴有40项(4大类/子图项目的总和),如何使每个子图的Y轴只显示对应的10个项目?
2.每个数据的Y轴标签,前面已经截短了,如何显示?多谢朋 ...
2021-7-5 23:20 - EveIOU - R语言论坛