R中的coord_cartesian函数对图没有影响

时间:2016-02-23 22:18:14

标签: r

我正在尝试使用R中的箱形图对数据集进行性别分布 这是命令:

qplot(x = gender, y = friendships_initiated,data = subset(pf, !is.na(gender)), geom = 'boxplot') + coord_cartesian(ylim = c(0, 500))

y轴没有变化。我不知道为什么我在控制台中得到以下内容:

ggproto object: Class CoordCartesian, Coord>
    aspect: function
    distance: function
    expand: TRUE
    is_linear: function
    labels: function
    limits: list
    range: function
    render_axis_h: function
    render_axis_v: function
    render_bg: function
    render_fg: function
    train: function
    transform: function
    super:  <ggproto object: Class CoordCartesian, Coord>

当我在另一个程序中使用scale_x_continuous函数时,我得到类似的东西。

1 个答案:

答案 0 :(得分:1)

您无法将其与Imports System.ComponentModel Public Class Form2 Private Sub Form2_FormClosing(sender As Object, e As FormClosingEventArgs) Handles Me.FormClosing If Form1.closeProgramAlreadyRequested = False Then Dim result As DialogResult = MessageBox.Show("You are About to cancel the Setup.", "Cancel Setup?", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button1) If result = DialogResult.No Then e.Cancel = True Else e.Cancel = False Form1.Close() End If End If End Sub End Class 一起使用,您必须使用qplot

功能
ggplot