Two errors: [$ operator is invalid for atomic vectors], ["plot.title.position" is not a valid theme element name]

Issue #10 new
Former user created an issue
#R version 3.6.3 (2020-02-29) -- "Holding the Windsock"
#Copyright (C) 2020 The R Foundation for Statistical Computing
#Platform: x86_64-w64-mingw32/x64 (64-bit)

#Loaded packages:
# ggtern 3.1.0
# ggplot2 3.3.0
# base 3.6.3
# datasets 3.6.3
# graphics 3.6.3
# grGraphics 3.6.3
# methods 3.6.3
# stats 3.6.3
# utils 3.6.3

library(ggtern)
# Loading required package: ggplot2
# Registered S3 methods overwritten by 'ggtern':
#    method           from   
# +.gg             ggplot2
# grid.draw.ggplot ggplot2
# plot.ggplot      ggplot2
# print.ggplot     ggplot2
# --
#    Remember to cite, run citation(package = 'ggtern') for further info.
# --
#    
#    Attaching package: ‘ggtern’
# 
# The following objects are masked from ‘package:ggplot2’:
#    
#    %+%, aes, annotate, calc_element, ggplot, ggplot_build, ggplot_gtable, ggplotGrob, ggsave, layer_data, theme, theme_bw, theme_classic, theme_dark, theme_gray, theme_light,
# theme_linedraw, theme_minimal, theme_void


sampleData <- data.frame(
   A = c( 25, 10),
   B = c( 25, 20),
   C = c( 50, 70)
)

error1 <- ggtern(data=sampleData, aes(A,B,C))

print(error1)
#Error: $ operator is invalid for atomic vectors


error2 <- ggtern(data=sampleData, aes(A,B,C)) +
       theme_bw() +
       theme_showarrows() +
       theme_nomask()
#Error in (function (el, elname)  : 
#  "plot.title.position" is not a valid theme element name.

Comments (2)

  1. Log in to comment